, m_dataType (dataType)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_dataType (dataType)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES,
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES,
renderCtxInfo.isFragmentHighPrecisionSupported() ? glu::PRECISION_HIGHP // Use highp if available.
: glu::PRECISION_MEDIUMP)
{
, m_dataType (dataType)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES,
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES,
renderCtxInfo.isFragmentHighPrecisionSupported() ? glu::PRECISION_HIGHP // Use highp if available.
: glu::PRECISION_MEDIUMP)
{
int viewportWidth = de::min(64, m_renderCtx.getRenderTarget().getWidth());
int viewportHeight = de::min(64, m_renderCtx.getRenderTarget().getHeight());
TestLog& log = m_testCtx.getLog();
- TextureRenderer renderer (m_renderCtx, m_testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP);
+ TextureRenderer renderer (m_renderCtx, log, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP);
tcu::Surface renderedFrame (viewportWidth, viewportHeight);
vector<float> texCoord;
int viewportHeight = de::min(64, m_renderCtx.getRenderTarget().getHeight());
bool allFacesOk = true;
TestLog& log = m_testCtx.getLog();
- TextureRenderer renderer (m_renderCtx, m_testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP);
+ TextureRenderer renderer (m_renderCtx, log, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP);
tcu::Surface renderedFrame (viewportWidth, viewportHeight);
vector<float> texCoord;
, m_dataType (dataType)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_caseNdx (0)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_caseNdx (0)
{
}
, m_dataType (dataType)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_caseNdx (0)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_caseNdx (0)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_curFace (0)
, m_isOk (false)
{
, m_renderCtxInfo (renderCtxInfo)
, m_filenames (filenames)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_renderCtxInfo (renderCtxInfo)
, m_filenames (filenames)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_curFace (0)
, m_isOk (false)
{
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES,
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES,
renderCtxInfo.isFragmentHighPrecisionSupported() ? glu::PRECISION_HIGHP // Use highp if available.
: glu::PRECISION_MEDIUMP)
{
, m_dataType (dataType)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES,
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES,
renderCtxInfo.isFragmentHighPrecisionSupported() ? glu::PRECISION_HIGHP // Use highp if available.
: glu::PRECISION_MEDIUMP)
{
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_hint (hint)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_height (height)
, m_useMipmaps (mipmaps)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_height (height)
, m_useMipmaps (mipmaps)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
, m_curFace (0)
, m_isOk (false)
{
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_height (0)
, m_filenames (filenames)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_MEDIUMP)
{
}
, m_internalFormat (internalFormat)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_100_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_100_ES, glu::PRECISION_HIGHP)
{
}
, m_internalFormat (internalFormat)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_dataType (dataType)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
CompressedTexFormat format,
deUint32 randomSeed)
: m_context (context)
- , m_renderer (context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_format (format)
, m_blockSize (tcu::getBlockPixelSize(format).xy())
, m_astcSupport (ASTCSUPPORTLEVEL_NONE)
, m_internalFormat (internalFormat)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_internalFormat (internalFormat)
, m_width (width)
, m_height (height)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_width (0)
, m_height (0)
, m_filenames (filenames)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_numLayers (numLayers)
, m_gradientTex (DE_NULL)
, m_gridTex (DE_NULL)
- , m_renderer (m_context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_depth (depth)
, m_gradientTex (DE_NULL)
, m_gridTex (DE_NULL)
- , m_renderer (m_context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curFace (0)
, m_isOk (false)
{
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curFace (0)
, m_isOk (false)
{
, m_height (height)
, m_numLayers (numLayers)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curLayer (0)
{
}
, m_height (height)
, m_numLayers (numLayers)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curLayer (0)
{
}
, m_height (height)
, m_depth (depth)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curSlice (0)
{
}
, m_height (height)
, m_depth (depth)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curSlice (0)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curFace (0)
, m_isOk (false)
{
, m_renderCtxInfo (renderCtxInfo)
, m_filenames (filenames)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_renderCtxInfo (renderCtxInfo)
, m_filenames (filenames)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_curFace (0)
, m_isOk (false)
{
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_dataType (dataType)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_hint (hint)
, m_size (size)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_height (height)
, m_depth (depth)
, m_texture (DE_NULL)
- , m_renderer (context.getRenderContext(), m_context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_texHeight (64)
, m_minFilter (minFilter)
, m_texture (DE_NULL)
- , m_renderer (context.getRenderContext(), m_context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_texSize (64)
, m_minFilter (minFilter)
, m_texture (DE_NULL)
- , m_renderer (context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_texDepth (32)
, m_minFilter (minFilter)
, m_texture (DE_NULL)
- , m_renderer (context.getRenderContext(), m_context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_width (width)
, m_height (height)
, m_compareFunc (compareFunc)
- , m_renderer (context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_compareFunc (compareFunc)
, m_gradientTex (DE_NULL)
, m_gridTex (DE_NULL)
- , m_renderer (context.getRenderContext(), m_context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_compareFunc (compareFunc)
, m_gradientTex (DE_NULL)
, m_gridTex (DE_NULL)
- , m_renderer (context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_height (height)
, m_useMipmaps (mipmaps)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
{
}
, m_height (height)
, m_useMipmaps (mipmaps)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
, m_curFace (0)
, m_isOk (false)
{
, m_swizzleB (swizzleB)
, m_swizzleA (swizzleA)
, m_texture (DE_NULL)
- , m_renderer (context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_HIGHP)
{
}
, m_height (height)
, m_caseNdx (0)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
{
}
, m_filenames (filenames)
, m_caseNdx (0)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
{
}
, m_height (height)
, m_caseNdx (0)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_300_ES, glu::PRECISION_MEDIUMP)
{
}
struct State
{
State (int seed,
- tcu::TestContext& testContext,
+ tcu::TestLog& log,
glu::RenderContext& renderContext)
: rng (seed)
- , results (testContext.getLog())
+ , results (log)
, srcImage (NULL)
, dstImage (NULL)
- , textureRenderer (renderContext, testContext, glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
+ , textureRenderer (renderContext, log, glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
{
}
<< m_srcImageInfo
<< m_dstImageInfo;
- m_state = new State(builder.get(), m_testCtx, m_context.getRenderContext());
+ m_state = new State(builder.get(), m_testCtx.getLog(), m_context.getRenderContext());
}
}
, m_onlySampleFaceInterior (onlySampleFaceInterior)
, m_gradientTex (DE_NULL)
, m_gridTex (DE_NULL)
- , m_renderer (m_context.getRenderContext(), context.getTestContext(), glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
+ , m_renderer (context.getRenderContext(), context.getTestContext().getLog(), glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
, m_caseNdx (0)
{
}
, m_size (size)
, m_depth (depth)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
, m_curLayerFace (0)
{
}
, m_size (size)
, m_depth (depth)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
, m_curLayerFace (0)
{
}
, m_format (internalFormat)
, m_width (width)
, m_texture (DE_NULL)
- , m_renderer (renderCtx, testCtx, glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
+ , m_renderer (renderCtx, testCtx.getLog(), glu::GLSL_VERSION_310_ES, glu::PRECISION_HIGHP)
{
}
y = rnd.getInt(0, renderTarget.getHeight() - height);
}
-ProgramLibrary::ProgramLibrary (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision)
+ProgramLibrary::ProgramLibrary (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision)
: m_context (context)
- , m_testCtx (testCtx)
+ , m_log (log)
, m_glslVersion (glslVersion)
, m_texCoordPrecision (texCoordPrecision)
{
glu::ShaderProgram* ProgramLibrary::getProgram (Program program)
{
- TestLog& log = m_testCtx.getLog();
-
if (m_programs.find(program) != m_programs.end())
return m_programs[program]; // Return from cache.
glu::ShaderProgram* progObj = new glu::ShaderProgram(m_context, glu::makeVtxFragSources(vertSrc, fragSrc));
if (!progObj->isOk())
{
- log << *progObj;
+ m_log << *progObj;
delete progObj;
TCU_FAIL("Failed to compile shader program");
}
return progObj;
}
-TextureRenderer::TextureRenderer (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision)
+TextureRenderer::TextureRenderer (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision)
: m_renderCtx (context)
- , m_testCtx (testCtx)
- , m_programLibrary (context, testCtx, glslVersion, texCoordPrecision)
+ , m_log (log)
+ , m_programLibrary (context, log, glslVersion, texCoordPrecision)
{
}
const glw::Functions& gl = m_renderCtx.getFunctions();
tcu::Vec4 wCoord = params.flags & RenderParams::PROJECTED ? params.w : tcu::Vec4(1.0f);
bool useBias = !!(params.flags & RenderParams::USE_BIAS);
- TestLog& log = m_testCtx.getLog();
bool logUniforms = !!(params.flags & RenderParams::LOG_UNIFORMS);
// Render quad with texture.
// \todo [2012-09-26 pyry] Move to ProgramLibrary and log unique programs only(?)
if (params.flags & RenderParams::LOG_PROGRAMS)
- log << *program;
+ m_log << *program;
GLU_EXPECT_NO_ERROR(gl.getError(), "Set vertex attributes");
gl.uniform1i(gl.getUniformLocation(prog, "u_sampler"), texUnit);
if (logUniforms)
- log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
+ m_log << TestLog::Message << "u_sampler = " << texUnit << TestLog::EndMessage;
if (useBias)
{
gl.uniform1f(gl.getUniformLocation(prog, "u_bias"), params.bias);
if (logUniforms)
- log << TestLog::Message << "u_bias = " << params.bias << TestLog::EndMessage;
+ m_log << TestLog::Message << "u_bias = " << params.bias << TestLog::EndMessage;
}
if (params.samplerType == SAMPLERTYPE_SHADOW)
{
gl.uniform1f(gl.getUniformLocation(prog, "u_ref"), params.ref);
if (logUniforms)
- log << TestLog::Message << "u_ref = " << params.ref << TestLog::EndMessage;
+ m_log << TestLog::Message << "u_ref = " << params.ref << TestLog::EndMessage;
}
gl.uniform4fv(gl.getUniformLocation(prog, "u_colorScale"), 1, params.colorScale.getPtr());
if (logUniforms)
{
- log << TestLog::Message << "u_colorScale = " << params.colorScale << TestLog::EndMessage;
- log << TestLog::Message << "u_colorBias = " << params.colorBias << TestLog::EndMessage;
+ m_log << TestLog::Message << "u_colorScale = " << params.colorScale << TestLog::EndMessage;
+ m_log << TestLog::Message << "u_colorBias = " << params.colorBias << TestLog::EndMessage;
}
GLU_EXPECT_NO_ERROR(gl.getError(), "Set program state");
class ProgramLibrary
{
public:
- ProgramLibrary (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision);
+ ProgramLibrary (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision);
~ProgramLibrary (void);
glu::ShaderProgram* getProgram (Program program);
ProgramLibrary& operator= (const ProgramLibrary& other);
const glu::RenderContext& m_context;
- tcu::TestContext& m_testCtx;
+ tcu::TestLog& m_log;
glu::GLSLVersion m_glslVersion;
glu::Precision m_texCoordPrecision;
std::map<Program, glu::ShaderProgram*> m_programs;
class TextureRenderer
{
public:
- TextureRenderer (const glu::RenderContext& context, tcu::TestContext& testCtx, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision);
+ TextureRenderer (const glu::RenderContext& context, tcu::TestLog& log, glu::GLSLVersion glslVersion, glu::Precision texCoordPrecision);
~TextureRenderer (void);
void clear (void); //!< Frees allocated resources. Destructor will call clear() as well.
TextureRenderer& operator= (const TextureRenderer& other);
const glu::RenderContext& m_renderCtx;
- tcu::TestContext& m_testCtx;
+ tcu::TestLog& m_log;
ProgramLibrary m_programLibrary;
};