Lines Matching refs:renderCtx
811 static bool readIntegerTextureViaFBOAndVerify (const RenderContext& renderCtx, in readIntegerTextureViaFBOAndVerify() argument
828 glu::Framebuffer fbo (renderCtx); in readIntegerTextureViaFBOAndVerify()
832 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind FBO"); in readIntegerTextureViaFBOAndVerify()
835 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glMemoryBarrier"); in readIntegerTextureViaFBOAndVerify()
852 …GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind texture to framebuffer color attach… in readIntegerTextureViaFBOAndVerify()
857 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glReadPixels"); in readIntegerTextureViaFBOAndVerify()
868 static bool readFloatOrNormTextureWithLookupsAndVerify (const RenderContext& renderCtx, in readFloatOrNormTextureWithLookupsAndVerify() argument
883 const glu::ShaderProgram program(renderCtx, in readFloatOrNormTextureWithLookupsAndVerify()
925 const glu::Buffer outputBuffer (renderCtx); in readFloatOrNormTextureWithLookupsAndVerify()
926 UniformAccessLogger uniforms (renderCtx.getFunctions(), log, program.getProgram()); in readFloatOrNormTextureWithLookupsAndVerify()
939 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram()… in readFloatOrNormTextureWithLookupsAndVerify()
947 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "SSB setup failed"); in readFloatOrNormTextureWithLookupsAndVerify()
956 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProg… in readFloatOrNormTextureWithLookupsAndVerify()
958 …const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getF… in readFloatOrNormTextureWithLookupsAndVerify()
991 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP… in readFloatOrNormTextureWithLookupsAndVerify()
1019 static bool readBufferTextureWithMappingAndVerify (const RenderContext& renderCtx, in readBufferTextureWithMappingAndVerify() argument
1034 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_TEXTURE_BUFFER, 0, resultAccess.getDataSize… in readBufferTextureWithMappingAndVerify()
1042 static bool readTextureAndVerify (const RenderContext& renderCtx, in readTextureAndVerify() argument
1052 …return readBufferTextureWithMappingAndVerify(renderCtx, glLog, bufferGL, textureFormat, imageSize.… in readTextureAndVerify()
1054 …return isFormatTypeInteger(textureFormat.type) ? readIntegerTextureViaFBOAndVerify (renderCtx, … in readTextureAndVerify()
1055 …: readFloatOrNormTextureWithLookupsAndVerify (renderCtx, glLog, textureGL, textureType, textureFo… in readTextureAndVerify()
1121 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1123 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1133 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture. in iterate()
1134 const glu::Texture texture (renderCtx); in iterate()
1166 const glu::ShaderProgram program(renderCtx, in iterate()
1190 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1214 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1217 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1223 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1226 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1249 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_textureType… in iterate()
1339 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1341 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1353 const glu::Buffer texture0Buf (renderCtx); in iterate()
1354 const glu::Buffer texture1Buf (renderCtx); in iterate()
1355 const glu::Texture texture0 (renderCtx); in iterate()
1356 const glu::Texture texture1 (renderCtx); in iterate()
1416 const glu::ShaderProgram program(renderCtx, in iterate()
1440 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1462 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1465 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1468 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1474 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1477 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1480 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1538 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture1, *texture1Buf, m_textureTy… in iterate()
1914 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1916 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1923 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
1924 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
1925 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
1926 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
1970 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1986 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2009 const glu::ShaderProgram program(renderCtx, in iterate()
2034 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2049 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2067 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2314 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2316 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2323 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
2324 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
2325 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
2326 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
2370 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2386 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2405 const glu::ShaderProgram program(renderCtx, in iterate()
2432 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2447 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2476 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2538 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2540 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2550 const glu::Buffer textureBuf (renderCtx); in iterate()
2551 const glu::Texture texture (renderCtx); in iterate()
2577 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2595 const glu::ShaderProgram program(renderCtx, in iterate()
2639 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2654 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2686 …if (readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_imageType, m_format, imageSize… in iterate()
2761 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2763 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2766 const glu::Buffer mainTextureBuf (renderCtx); in iterate()
2767 const glu::Texture mainTexture (renderCtx); in iterate()
2768 const glu::Texture shaderOutResultTexture (renderCtx); in iterate()
2784 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2791 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2805 const glu::ShaderProgram program(renderCtx, in iterate()
2829 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2844 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2855 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *shaderOutResultTexture, TEXTURETYPE_2D, T… in iterate()
2936 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2938 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2943 …const int viewportX = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2944 …const int viewportY = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2946 const glu::Texture texture (renderCtx); in iterate()
2966 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2972 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx)); in iterate()
2973 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2974 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2978 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen color attachment rb"); in iterate()
2982 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo color attachment"); in iterate()
2988 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen depth attachment rb"); in iterate()
2991 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo depth attachment"); in iterate()
2997 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen stencil attachment rb"); in iterate()
3000 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo stencil attachment"); in iterate()
3004 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "setup fbo"); in iterate()
3040 const glu::ShaderProgram program(renderCtx, in iterate()
3066 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
3098 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0], in iterate()
3100 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Draw failed"); in iterate()
3107 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess()); in iterate()
3113 const int numSamples = de::max(1, renderCtx.getRenderTarget().getNumSamples()); in iterate()
3119 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *texture, TEXTURETYPE_2D, TextureFormat(Te… in iterate()