Lines Matching refs:renderCtx

822 static bool readIntegerTextureViaFBOAndVerify (const RenderContext&			renderCtx,  in readIntegerTextureViaFBOAndVerify()  argument
839 glu::Framebuffer fbo (renderCtx); in readIntegerTextureViaFBOAndVerify()
843 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind FBO"); in readIntegerTextureViaFBOAndVerify()
846 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glMemoryBarrier"); in readIntegerTextureViaFBOAndVerify()
863 …GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Bind texture to framebuffer color attach… in readIntegerTextureViaFBOAndVerify()
868 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glReadPixels"); in readIntegerTextureViaFBOAndVerify()
879 static bool readFloatOrNormTextureWithLookupsAndVerify (const RenderContext& renderCtx, in readFloatOrNormTextureWithLookupsAndVerify() argument
893 …ersionDeclaration = getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in readFloatOrNormTextureWithLookupsAndVerify()
895 const glu::ShaderProgram program(renderCtx, in readFloatOrNormTextureWithLookupsAndVerify()
937 const glu::Buffer outputBuffer (renderCtx); in readFloatOrNormTextureWithLookupsAndVerify()
938 UniformAccessLogger uniforms (renderCtx.getFunctions(), log, program.getProgram()); in readFloatOrNormTextureWithLookupsAndVerify()
951 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProgram()… in readFloatOrNormTextureWithLookupsAndVerify()
959 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "SSB setup failed"); in readFloatOrNormTextureWithLookupsAndVerify()
968 …const int blockSize = glu::getProgramResourceInt(renderCtx.getFunctions(), program.getProg… in readFloatOrNormTextureWithLookupsAndVerify()
970 …const glu::InterfaceVariableInfo valueInfo = glu::getProgramInterfaceVariableInfo(renderCtx.getF… in readFloatOrNormTextureWithLookupsAndVerify()
1003 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP… in readFloatOrNormTextureWithLookupsAndVerify()
1031 static bool readBufferTextureWithMappingAndVerify (const RenderContext& renderCtx, in readBufferTextureWithMappingAndVerify() argument
1046 …const BufferMemMap bufMap(renderCtx.getFunctions(), GL_TEXTURE_BUFFER, 0, dataSize, GL_MAP_READ_BI… in readBufferTextureWithMappingAndVerify()
1054 static bool readTextureAndVerify (const RenderContext& renderCtx, in readTextureAndVerify() argument
1064 …return readBufferTextureWithMappingAndVerify(renderCtx, glLog, bufferGL, textureFormat, imageSize.… in readTextureAndVerify()
1066 …return isFormatTypeInteger(textureFormat.type) ? readIntegerTextureViaFBOAndVerify (renderCtx, … in readTextureAndVerify()
1067 …: readFloatOrNormTextureWithLookupsAndVerify (renderCtx, glLog, textureGL, textureType, textureFo… in readTextureAndVerify()
1133 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1135 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1145 const glu::Buffer textureBuf (renderCtx); // \note Only really used if using buffer texture. in iterate()
1146 const glu::Texture texture (renderCtx); in iterate()
1177 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1179 const glu::ShaderProgram program(renderCtx, in iterate()
1181 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1203 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1227 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1230 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1236 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1239 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1262 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_textureType… in iterate()
1352 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1354 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1366 const glu::Buffer texture0Buf (renderCtx); in iterate()
1367 const glu::Buffer texture1Buf (renderCtx); in iterate()
1368 const glu::Texture texture0 (renderCtx); in iterate()
1369 const glu::Texture texture1 (renderCtx); in iterate()
1428 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
1430 const glu::ShaderProgram program(renderCtx, in iterate()
1432 + textureTypeExtensionShaderRequires(shaderImageType, renderCtx) + in iterate()
1454 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
1476 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1479 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1482 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1488 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1491 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
1494 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
1552 …const bool compareOk = readTextureAndVerify(renderCtx, glLog, *texture1, *texture1Buf, m_textureTy… in iterate()
1928 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
1930 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
1937 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
1938 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
1939 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
1940 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
1984 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2000 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2022 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2024 const glu::ShaderProgram program(renderCtx, in iterate()
2026 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2027 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2049 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2064 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2082 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2329 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2331 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2338 const glu::Buffer endResultTextureBuf (renderCtx); in iterate()
2339 const glu::Buffer returnValueTextureBuf (renderCtx); in iterate()
2340 …const glu::Texture endResultTexture (renderCtx); //!< Texture for the final result; i.e. the te… in iterate()
2341 …const glu::Texture returnValueTexture (renderCtx); //!< Texture into which the return values ar… in iterate()
2385 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2401 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2419 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2421 const glu::ShaderProgram program(renderCtx, in iterate()
2423 + imageAtomicExtensionShaderRequires(renderCtx) in iterate()
2424 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2448 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2463 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2487 …if (readTextureAndVerify(renderCtx, glLog, textureToCheckGL, textureToCheckBufGL, m_imageType, m_f… in iterate()
2549 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2551 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2561 const glu::Buffer textureBuf (renderCtx); in iterate()
2562 const glu::Texture texture (renderCtx); in iterate()
2588 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2605 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2608 const glu::ShaderProgram program(renderCtx, in iterate()
2610 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2652 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2667 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2699 …if (readTextureAndVerify(renderCtx, glLog, *texture, *textureBuf, m_imageType, m_format, imageSize… in iterate()
2774 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2776 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2779 const glu::Buffer mainTextureBuf (renderCtx); in iterate()
2780 const glu::Texture mainTexture (renderCtx); in iterate()
2781 const glu::Texture shaderOutResultTexture (renderCtx); in iterate()
2797 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2804 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2817 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
2819 const glu::ShaderProgram program(renderCtx, in iterate()
2821 + textureTypeExtensionShaderRequires(m_imageType, renderCtx) + in iterate()
2843 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
2858 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glDispatchCompute"); in iterate()
2869 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *shaderOutResultTexture, TEXTURETYPE_2D, T… in iterate()
2950 const RenderContext& renderCtx = m_context.getRenderContext(); in iterate() local
2952 glu::CallLogWrapper glLog (renderCtx.getFunctions(), log); in iterate()
2957 …const int viewportX = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2958 …const int viewportY = (m_renderTarget == RENDERTARGET_DEFAULT) ? (rnd.getInt(0, renderCtx.g… in iterate()
2959 const glu::Texture texture (renderCtx); in iterate()
2979 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "glBindImageTexture"); in iterate()
2985 fbo = de::MovePtr<glu::Framebuffer>(new glu::Framebuffer(renderCtx)); in iterate()
2986 colorAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2987 testAttachment = de::MovePtr<glu::Renderbuffer>(new glu::Renderbuffer(renderCtx)); in iterate()
2991 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen color attachment rb"); in iterate()
2995 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo color attachment"); in iterate()
3001 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen depth attachment rb"); in iterate()
3004 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo depth attachment"); in iterate()
3010 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "gen stencil attachment rb"); in iterate()
3013 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "set fbo stencil attachment"); in iterate()
3017 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "setup fbo"); in iterate()
3051 …nDeclaration = glu::getGLSLVersionDeclaration(glu::getContextTypeGLSLVersion(renderCtx.getType())); in iterate()
3055 const glu::ShaderProgram program(renderCtx, in iterate()
3066 + imageAtomicExtensionShaderRequires(renderCtx) + in iterate()
3081 UniformAccessLogger uniforms(renderCtx.getFunctions(), log, program.getProgram()); in iterate()
3113 glu::draw(renderCtx, program.getProgram(), DE_LENGTH_OF_ARRAY(attrBindings), &attrBindings[0], in iterate()
3115 GLU_EXPECT_NO_ERROR(renderCtx.getFunctions().getError(), "Draw failed"); in iterate()
3122 glu::readPixels(renderCtx, viewportX, viewportY, rendered.getAccess()); in iterate()
3128 const int numSamples = de::max(1, renderCtx.getRenderTarget().getNumSamples()); in iterate()
3134 …if (readIntegerTextureViaFBOAndVerify(renderCtx, glLog, *texture, TEXTURETYPE_2D, TextureFormat(Te… in iterate()