Lines Matching defs:context

43 //	  gl.debugMessageCallback(debugCallback, &context);
48 glc::Context *context = (glc::Context *)userParam;
50 tcu::TestLog& log = context->getDeqpContext().getTestContext().getLog();
170 de::MovePtr<glu::ShaderProgram> makeGraphicsPipeline(glc::Context& context,
178 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
183 string versionDecl(getGLSLVersionDeclaration(context.getGLSLVersion()));
185 context.getDeqpContext().getContextInfo().isExtensionSupported("GL_EXT_tessellation_shader") ?
254 if(context.getShaderType() == SHADER_TYPE_GLSL)
268 program = new glu::ShaderProgram(context.getDeqpContext().getRenderContext().getFunctions(), sources);
270 DE_ASSERT(context.getShaderType() == SHADER_TYPE_SPIRV);
284 program = new glu::ShaderProgram(context.getDeqpContext().getRenderContext().getFunctions(), binaries);
300 de::MovePtr<glu::ShaderProgram> makeComputePipeline(glc::Context& context, const GlslSource &glslTemplate,
304 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
325 string versionDecl(getGLSLVersionDeclaration(context.getGLSLVersion()));
337 if(context.getShaderType() == SHADER_TYPE_GLSL)
341 program = new glu::ShaderProgram(context.getDeqpContext().getRenderContext().getFunctions(), sources);
343 DE_ASSERT(context.getShaderType() == SHADER_TYPE_SPIRV);
348 program = new glu::ShaderProgram(context.getDeqpContext().getRenderContext().getFunctions(), binaries);
402 explicit BufferOrImage(glc::Context& context, bool image)
403 : m_gl(context.getDeqpContext().getRenderContext().getFunctions())
415 glc::Context& context, deUint64 sizeInBytes, GLenum target = GL_SHADER_STORAGE_BUFFER)
416 : BufferOrImage (context, false)
485 explicit Image(glc::Context& context, deUint32 width, deUint32 height,
487 : BufferOrImage(context, true)
516 explicit Vao(glc::Context& context)
517 : m_gl(context.getDeqpContext().getRenderContext().getFunctions())
542 explicit Fbo(glc::Context& context)
543 : m_gl(context.getDeqpContext().getRenderContext().getFunctions())
603 deUint32 glc::subgroups::getSubgroupSize(Context& context)
605 int subgroupSize = context.getDeqpContext().getContextInfo().getInt(GL_SUBGROUP_SIZE_KHR);
746 bool glc::subgroups::isSubgroupSupported(Context& context)
748 return context.getDeqpContext().getContextInfo().isExtensionSupported("GL_KHR_shader_subgroup");
752 Context& context, const ShaderStageFlags stage)
755 int supportedStages = context.getDeqpContext().getContextInfo().getInt(GL_SUBGROUP_SUPPORTED_STAGES_KHR);
774 Context& context,
779 int supportedOperations = context.getDeqpContext().getContextInfo().getInt(GL_SUBGROUP_SUPPORTED_FEATURES_KHR);
784 bool glc::subgroups::isFragmentSSBOSupportedForDevice(Context& context)
786 int numFragmentSSBOs = context.getDeqpContext().getContextInfo().getInt(GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS);
791 bool glc::subgroups::isVertexSSBOSupportedForDevice(Context& context)
793 int numVertexSSBOs = context.getDeqpContext().getContextInfo().getInt(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS);
798 bool glc::subgroups::isImageSupportedForStageOnDevice(Context& context, const ShaderStageFlags stage)
824 int numImages = context.getDeqpContext().getContextInfo().getInt(stageQuery);
829 bool glc::subgroups::isDoubleSupportedForDevice(Context& context)
831 glu::ContextType contextType = context.getDeqpContext().getRenderContext().getType();
833 context.getDeqpContext().getContextInfo().isExtensionSupported("GL_ARB_gpu_shader_fp64"));
973 void initializeMemory(deqp::Context& context, glw::GLvoid *hostPtr, subgroups::SSBOData& data)
981 de::Random rnd(context.getTestContext().getCommandLine().getBaseSeed());
1084 Context& context, Format format, SSBOData* extraData,
1089 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
1090 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
1095 const GlslSource& vshader = context.getSourceCollection().get("vert");
1096 const GlslSource& tcshader = context.getSourceCollection().get("tesc");
1097 const GlslSource& teshader = context.getSourceCollection().get("tese");
1098 const GlslSource& fshader = context.getSourceCollection().get("fragment");
1104 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Image(context, static_cast<deUint32>(extraData[i].numElements), 1u, extraData[i].format));
1111 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Buffer(context, size, GL_UNIFORM_BUFFER));
1114 initializeMemory(context.getDeqpContext(), ptr, extraData[i]);
1139 makeGraphicsPipeline(context, (ShaderStageFlags)(SHADER_STAGE_VERTEX_BIT | SHADER_STAGE_FRAGMENT_BIT | SHADER_STAGE_TESS_CONTROL_BIT | SHADER_STAGE_TESS_EVALUATION_BIT),
1146 const deUint32 subgroupSize = getSubgroupSize(context);
1148 Buffer vertexBuffer (context, vertexBufferSize, GL_ARRAY_BUFFER);
1151 Image discardableImage (context, maxWidth, 1u, format);
1170 Vao vao(context);
1171 Fbo fbo(context);
1270 Context& context, Format format, SSBOData* extraData,
1274 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
1275 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
1280 const GlslSource& vshader = context.getSourceCollection().get("vert");
1281 const GlslSource& gshader = context.getSourceCollection().get("geometry");
1282 const GlslSource& fshader = context.getSourceCollection().get("fragment");
1288 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Image(context, static_cast<deUint32>(extraData[i].numElements), 1u, extraData[i].format));
1295 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Buffer(context, size, GL_UNIFORM_BUFFER));
1298 initializeMemory(context.getDeqpContext(), ptr, extraData[i]);
1323 makeGraphicsPipeline(context, (ShaderStageFlags)(SHADER_STAGE_VERTEX_BIT | SHADER_STAGE_FRAGMENT_BIT | SHADER_STAGE_GEOMETRY_BIT),
1330 const deUint32 subgroupSize = getSubgroupSize(context);
1332 Buffer vertexBuffer (context, vertexBufferSize, GL_ARRAY_BUFFER);
1335 Image discardableImage (context, maxWidth, 1u, format);
1353 Vao vao(context);
1354 Fbo fbo(context);
1376 initializeMemory(context.getDeqpContext(), ptr, extraData[ndx]);
1436 Context& context, Format format, SSBOData* extraDatas,
1444 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
1445 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
1482 const GlslSource *vshader = &context.getSourceCollection().get(vert);
1490 tcshader = &context.getSourceCollection().get(tesc);
1491 teshader = &context.getSourceCollection().get(tese);
1498 gshader = &context.getSourceCollection().get("geometry_lines");
1503 gshader = &context.getSourceCollection().get("geometry_points");
1508 fshader = &context.getSourceCollection().get("fragment");
1518 inputBuffers[ndx] = de::SharedPtr<BufferOrImage>(new Buffer(context, size));
1535 inputBuffers[ndx] = de::SharedPtr<BufferOrImage>(new Image(context, static_cast<deUint32>(extraDatas[datasNdx].numElements), 1, extraDatas[datasNdx].format));
1543 inputBuffers[ndx] = de::SharedPtr<BufferOrImage>(new Buffer(context, size));
1546 initializeMemory(context.getDeqpContext(), ptr, extraDatas[datasNdx]);
1569 makeGraphicsPipeline(context, shaderStageRequired, vshader, fshader, gshader, tcshader, teshader));
1577 const deUint32 subgroupSize = getSubgroupSize(context);
1580 Image resultImage (context, maxWidth, 1, format);
1584 Vao vao(context);
1585 Fbo fbo(context);
1603 initializeMemory(context.getDeqpContext(), ptr, extraDatas[ndx - stagesCount]);
1720 tcu::TestStatus glc::subgroups::makeVertexFrameBufferTest(Context& context, Format format,
1724 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
1725 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
1730 const GlslSource& vshader = context.getSourceCollection().get("vert");
1731 const GlslSource& fshader = context.getSourceCollection().get("fragment");
1737 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Image(context, static_cast<deUint32>(extraData[i].numElements), 1u, extraData[i].format));
1745 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Buffer(context, size, GL_UNIFORM_BUFFER));
1748 initializeMemory(context.getDeqpContext(), ptr, extraData[i]);
1773 makeGraphicsPipeline(context, (ShaderStageFlags)(SHADER_STAGE_VERTEX_BIT | SHADER_STAGE_FRAGMENT_BIT),
1781 const deUint32 subgroupSize = getSubgroupSize(context);
1784 Buffer vertexBuffer (context, vertexBufferSize, GL_ARRAY_BUFFER);
1789 Image discardableImage (context, maxWidth, 1u, format);
1807 Vao vao(context);
1808 Fbo fbo(context);
1830 initializeMemory(context.getDeqpContext(), ptr, extraData[ndx]);
1890 tcu::TestStatus glc::subgroups::makeFragmentFrameBufferTest (Context& context, Format format, SSBOData* extraDatas,
1895 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
1896 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
1898 const GlslSource& vshader = context.getSourceCollection().get("vert");
1899 const GlslSource& fshader = context.getSourceCollection().get("fragment");
1907 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Image(context,
1917 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Buffer(context, size, GL_UNIFORM_BUFFER));
1920 initializeMemory(context.getDeqpContext(), ptr, extraDatas[i]);
1945 makeGraphicsPipeline(context, (ShaderStageFlags)(SHADER_STAGE_VERTEX_BIT | SHADER_STAGE_FRAGMENT_BIT),
1953 const deUint32 subgroupSize = getSubgroupSize(context);
1958 Vao vao(context);
1959 Fbo fbo(context);
1976 initializeMemory(context.getDeqpContext(), ptr, extraDatas[i]);
1985 Image resultImage(context, width, height, format);
2039 Context& context, Format format, SSBOData* inputs, deUint32 inputsCount,
2044 const glw::Functions& gl = context.getDeqpContext().getRenderContext().getFunctions();
2053 context, resultBufferSizeInBytes);
2061 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Image(context,
2070 inputBuffers[i] = de::SharedPtr<BufferOrImage>(new Buffer(context, size));
2073 initializeMemory(context.getDeqpContext(), ptr, inputs[i]);
2079 tcu::TestLog& log = context.getDeqpContext().getTestContext().getLog();
2108 const GlslSource &cshader = context.getSourceCollection().get("comp");
2113 const deUint32 subgroupSize = getSubgroupSize(context);
2139 makeComputePipeline(context, cshader,
2163 makeComputePipeline(context, cshader, nextX, nextY, nextZ));