Lines Matching refs:renderCtx
821 static bool readIntegerTextureViaFBOAndVerify (const RenderContext& renderCtx, in readIntegerTextureViaFBOAndVerify() argument
838 glu::Framebuffer fbo (renderCtx); in readIntegerTextureViaFBOAndVerify()
842 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind FBO"); in readIntegerTextureViaFBOAndVerify()
845 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glMemoryBarrier"); in readIntegerTextureViaFBOAndVerify()
862 …GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind texture to framebuffer color attach… in readIntegerTextureViaFBOAndVerify()
867 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glReadPixels"); in readIntegerTextureViaFBOAndVerify()
878 static bool readFloatOrNormTextureWithLookupsAndVerify (const RenderContext& renderCtx, in readFloatOrNormTextureWithLookupsAndVerify() argument
892 …ersionDeclaration = getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in readFloatOrNormTextureWithLookupsAndVerify()
894 const glu::ShaderProgram program(renderCtx, in readFloatOrNormTextureWithLookupsAndVerify()
936 const glu::Buffer outputBuffer (renderCtx); in readFloatOrNormTextureWithLookupsAndVerify()
937 UniformAccessLogger uniforms (renderCtx.getFunctions(), log, program.getProgram()); in readFloatOrNormTextureWithLookupsAndVerify()
950 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram()… in readFloatOrNormTextureWithLookupsAndVerify()
958 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "SSB setup failed"); in readFloatOrNormTextureWithLookupsAndVerify()
967 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProg… in readFloatOrNormTextureWithLookupsAndVerify()
969 …const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getF… in readFloatOrNormTextureWithLookupsAndVerify()
1002 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP… in readFloatOrNormTextureWithLookupsAndVerify()
1030 static bool readBufferTextureWithMappingAndVerify (const RenderContext& renderCtx, in readBufferTextureWithMappingAndVerify() argument
1045 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_TEXTURE_BUFFER, 0, dataSize, GL_MAP_READ_BI… in readBufferTextureWithMappingAndVerify()
1053 static bool readTextureAndVerify (const RenderContext& renderCtx, in readTextureAndVerify() argument
1063 …return readBufferTextureWithMappingAndVerify(renderCtx, glLog, bufferGL, textureFormat, imageSize.… in readTextureAndVerify()
1065 …return isFormatTypeInteger(textureFormat.type) ? readIntegerTextureViaFBOAndVerify (renderCtx, … in readTextureAndVerify()
1066 …: readFloatOrNormTextureWithLookupsAndVerify (renderCtx, glLog, textureGL, textureType, textureFo… in readTextureAndVerify()
1132 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1134 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1144 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture. in iterate()
1145 const glu::Texture texture (renderCtx); in iterate()
1176 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1178 const glu::ShaderProgram program(renderCtx, in iterate()
1180 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1202 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1226 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1229 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1235 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1238 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1261 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_textureType… in iterate()
1351 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1353 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1365 const glu::Buffer texture0Buf (renderCtx); in iterate()
1366 const glu::Buffer texture1Buf (renderCtx); in iterate()
1367 const glu::Texture texture0 (renderCtx); in iterate()
1368 const glu::Texture texture1 (renderCtx); in iterate()
1427 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1429 const glu::ShaderProgram program(renderCtx, in iterate()
1431 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1453 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1475 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1478 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1481 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1487 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1490 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1493 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1551 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture1, *texture1Buf, m_textureTy… in iterate()
1927 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1929 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1936 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
1937 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
1938 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
1939 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
1983 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1999 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2021 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2023 const glu::ShaderProgram program(renderCtx, in iterate()
2025 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2026 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2048 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2063 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2081 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2328 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2330 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2337 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
2338 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
2339 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
2340 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
2384 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2400 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2418 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2420 const glu::ShaderProgram program(renderCtx, in iterate()
2422 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2423 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2447 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2462 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2486 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2548 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2550 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2560 const glu::Buffer textureBuf (renderCtx); in iterate()
2561 const glu::Texture texture (renderCtx); in iterate()
2587 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2604 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2607 const glu::ShaderProgram program(renderCtx, in iterate()
2609 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2651 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2666 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2698 …if (readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_imageType, m_format, imageSize… in iterate()
2773 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2775 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2778 const glu::Buffer mainTextureBuf (renderCtx); in iterate()
2779 const glu::Texture mainTexture (renderCtx); in iterate()
2780 const glu::Texture shaderOutResultTexture (renderCtx); in iterate()
2796 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2803 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2816 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2818 const glu::ShaderProgram program(renderCtx, in iterate()
2820 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2842 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2857 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2868 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *shaderOutResultTexture, TEXTURETYPE_2D, T… in iterate()
2949 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2951 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2956 …const int viewportX = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2957 …const int viewportY = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2958 const glu::Texture texture (renderCtx); in iterate()
2978 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2984 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx)); in iterate()
2985 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2986 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2990 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen color attachment rb"); in iterate()
2994 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo color attachment"); in iterate()
3000 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen depth attachment rb"); in iterate()
3003 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo depth attachment"); in iterate()
3009 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen stencil attachment rb"); in iterate()
3012 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo stencil attachment"); in iterate()
3016 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "setup fbo"); in iterate()
3050 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
3054 const glu::ShaderProgram program(renderCtx, in iterate()
3065 + imageAtomicExtensionShaderRequires(renderCtx) + in iterate()
3080 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
3112 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0], in iterate()
3114 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Draw failed"); in iterate()
3121 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess()); in iterate()
3127 const int numSamples = de::max(1, renderCtx.getRenderTarget().getNumSamples()); in iterate()
3133 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *texture, TEXTURETYPE_2D, TextureFormat(Te… in iterate()