Lines Matching refs:renderCtx
829 static bool readIntegerTextureViaFBOAndVerify (const RenderContext& renderCtx, in readIntegerTextureViaFBOAndVerify() argument
846 glu::Framebuffer fbo (renderCtx); in readIntegerTextureViaFBOAndVerify()
850 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind FBO"); in readIntegerTextureViaFBOAndVerify()
853 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glMemoryBarrier"); in readIntegerTextureViaFBOAndVerify()
870 …GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind texture to framebuffer color attach… in readIntegerTextureViaFBOAndVerify()
875 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glReadPixels"); in readIntegerTextureViaFBOAndVerify()
886 static bool readFloatOrNormTextureWithLookupsAndVerify (const RenderContext& renderCtx, in readFloatOrNormTextureWithLookupsAndVerify() argument
900 …ersionDeclaration = getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in readFloatOrNormTextureWithLookupsAndVerify()
902 const glu::ShaderProgram program(renderCtx, in readFloatOrNormTextureWithLookupsAndVerify()
944 const glu::Buffer outputBuffer (renderCtx); in readFloatOrNormTextureWithLookupsAndVerify()
945 UniformAccessLogger uniforms (renderCtx.getFunctions(), log, program.getProgram()); in readFloatOrNormTextureWithLookupsAndVerify()
958 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram()… in readFloatOrNormTextureWithLookupsAndVerify()
966 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "SSB setup failed"); in readFloatOrNormTextureWithLookupsAndVerify()
975 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProg… in readFloatOrNormTextureWithLookupsAndVerify()
977 …const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getF… in readFloatOrNormTextureWithLookupsAndVerify()
1010 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP… in readFloatOrNormTextureWithLookupsAndVerify()
1038 static bool readBufferTextureWithMappingAndVerify (const RenderContext& renderCtx, in readBufferTextureWithMappingAndVerify() argument
1053 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_TEXTURE_BUFFER, 0, dataSize, GL_MAP_READ_BI… in readBufferTextureWithMappingAndVerify()
1061 static bool readTextureAndVerify (const RenderContext& renderCtx, in readTextureAndVerify() argument
1071 …return readBufferTextureWithMappingAndVerify(renderCtx, glLog, bufferGL, textureFormat, imageSize.… in readTextureAndVerify()
1073 …return isFormatTypeInteger(textureFormat.type) ? readIntegerTextureViaFBOAndVerify (renderCtx, … in readTextureAndVerify()
1074 …: readFloatOrNormTextureWithLookupsAndVerify (renderCtx, glLog, textureGL, textureType, textureFo… in readTextureAndVerify()
1140 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1142 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1152 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture. in iterate()
1153 const glu::Texture texture (renderCtx); in iterate()
1184 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1186 const glu::ShaderProgram program(renderCtx, in iterate()
1188 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1210 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1234 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1237 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1243 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1246 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1269 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_textureType… in iterate()
1359 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1361 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1373 const glu::Buffer texture0Buf (renderCtx); in iterate()
1374 const glu::Buffer texture1Buf (renderCtx); in iterate()
1375 const glu::Texture texture0 (renderCtx); in iterate()
1376 const glu::Texture texture1 (renderCtx); in iterate()
1435 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1437 const glu::ShaderProgram program(renderCtx, in iterate()
1439 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1461 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1483 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1486 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1489 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1495 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1498 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1501 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1559 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture1, *texture1Buf, m_textureTy… in iterate()
1936 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1938 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1945 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
1946 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
1947 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
1948 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
1992 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2008 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2030 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2032 const glu::ShaderProgram program(renderCtx, in iterate()
2034 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2035 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2057 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2072 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2090 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2338 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2340 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2347 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
2348 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
2349 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
2350 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
2394 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2410 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2428 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2430 const glu::ShaderProgram program(renderCtx, in iterate()
2432 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2433 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2457 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2472 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2496 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2558 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2560 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2570 const glu::Buffer textureBuf (renderCtx); in iterate()
2571 const glu::Texture texture (renderCtx); in iterate()
2597 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2614 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2617 const glu::ShaderProgram program(renderCtx, in iterate()
2619 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2661 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2676 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2708 …if (readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_imageType, m_format, imageSize… in iterate()
2783 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2785 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2788 const glu::Buffer mainTextureBuf (renderCtx); in iterate()
2789 const glu::Texture mainTexture (renderCtx); in iterate()
2790 const glu::Texture shaderOutResultTexture (renderCtx); in iterate()
2806 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2813 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2826 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2828 const glu::ShaderProgram program(renderCtx, in iterate()
2830 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2852 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2867 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2878 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *shaderOutResultTexture, TEXTURETYPE_2D, T… in iterate()
2959 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2961 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2966 …const int viewportX = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2967 …const int viewportY = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2968 const glu::Texture texture (renderCtx); in iterate()
2988 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2994 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx)); in iterate()
2995 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2996 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
3000 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen color attachment rb"); in iterate()
3004 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo color attachment"); in iterate()
3010 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen depth attachment rb"); in iterate()
3013 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo depth attachment"); in iterate()
3019 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen stencil attachment rb"); in iterate()
3022 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo stencil attachment"); in iterate()
3026 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "setup fbo"); in iterate()
3060 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
3064 const glu::ShaderProgram program(renderCtx, in iterate()
3075 + imageAtomicExtensionShaderRequires(renderCtx) + in iterate()
3090 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
3122 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0], in iterate()
3124 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Draw failed"); in iterate()
3131 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess()); in iterate()
3137 const int numSamples = de::max(1, renderCtx.getRenderTarget().getNumSamples()); in iterate()
3143 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *texture, TEXTURETYPE_2D, TextureFormat(Te… in iterate()