</TestSuite>
<TestSuite name="dither">
<TestCase name="disabled">
+ <Test name="gradient_white">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_red">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_green">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_blue">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_alpha">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
<Test name="unicolored_quad_white">
<TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
</Test>
</TestSuite>
<TestSuite name="dither">
<TestCase name="disabled">
+ <Test name="gradient_white">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ <TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_red">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ <TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_green">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ <TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_blue">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ <TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
+ <Test name="gradient_alpha">
+ <TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
+ <TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
+ </Test>
<Test name="unicolored_quad_white">
<TestInstance glconfig="rgba8888d24s8ms0" rotation="unspecified" surfacetype="window"/>
<TestInstance glconfig="rgb565d0s0ms0" rotation="unspecified" surfacetype="window"/>
dEQP-GLES2.functional.depth_range.compare.clamp_near
dEQP-GLES2.functional.depth_range.compare.clamp_far
dEQP-GLES2.functional.depth_range.compare.clamp_both
+dEQP-GLES2.functional.dither.disabled.gradient_white
+dEQP-GLES2.functional.dither.disabled.gradient_red
+dEQP-GLES2.functional.dither.disabled.gradient_green
+dEQP-GLES2.functional.dither.disabled.gradient_blue
+dEQP-GLES2.functional.dither.disabled.gradient_alpha
dEQP-GLES2.functional.dither.disabled.unicolored_quad_white
dEQP-GLES2.functional.dither.disabled.unicolored_quad_red
dEQP-GLES2.functional.dither.disabled.unicolored_quad_green
dEQP-GLES3.functional.read_pixels.skip.choose_3_0
dEQP-GLES3.functional.read_pixels.skip.choose_3_3
dEQP-GLES3.functional.read_pixels.skip.choose_3_5
+dEQP-GLES3.functional.dither.disabled.gradient_white
+dEQP-GLES3.functional.dither.disabled.gradient_red
+dEQP-GLES3.functional.dither.disabled.gradient_green
+dEQP-GLES3.functional.dither.disabled.gradient_blue
+dEQP-GLES3.functional.dither.disabled.gradient_alpha
dEQP-GLES3.functional.dither.disabled.unicolored_quad_white
dEQP-GLES3.functional.dither.disabled.unicolored_quad_red
dEQP-GLES3.functional.dither.disabled.unicolored_quad_green
dEQP-GLES3.functional.read_pixels.skip.choose_3_0
dEQP-GLES3.functional.read_pixels.skip.choose_3_3
dEQP-GLES3.functional.read_pixels.skip.choose_3_5
+dEQP-GLES3.functional.dither.disabled.gradient_white
+dEQP-GLES3.functional.dither.disabled.gradient_red
+dEQP-GLES3.functional.dither.disabled.gradient_green
+dEQP-GLES3.functional.dither.disabled.gradient_blue
+dEQP-GLES3.functional.dither.disabled.gradient_alpha
dEQP-GLES3.functional.dither.disabled.unicolored_quad_white
dEQP-GLES3.functional.dither.disabled.unicolored_quad_red
dEQP-GLES3.functional.dither.disabled.unicolored_quad_green
dEQP-GLES2.functional.fbo.completeness.renderable.renderbuffer.color0.rgb16f
dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.rgb16f
-# Bug 23219552
-dEQP-GLES2.functional.dither.disabled.gradient_white
-dEQP-GLES2.functional.dither.disabled.gradient_red
-dEQP-GLES2.functional.dither.disabled.gradient_green
-dEQP-GLES2.functional.dither.disabled.gradient_blue
-dEQP-GLES2.functional.dither.disabled.gradient_alpha
-
#Bug 25720457
dEQP-GLES2.functional.texture.units.2_units.only_cube.9
dEQP-GLES3.functional.shaders.builtin_functions.precision.reflect.*mediump*.scalar
dEQP-GLES3.functional.shaders.builtin_functions.precision.reflect.*highp*.scalar
-# Bug 23219552
-dEQP-GLES3.functional.dither.disabled.gradient_white
-dEQP-GLES3.functional.dither.disabled.gradient_red
-dEQP-GLES3.functional.dither.disabled.gradient_green
-dEQP-GLES3.functional.dither.disabled.gradient_blue
-dEQP-GLES3.functional.dither.disabled.gradient_alpha
-
# Bug 24068436
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.samplercubeshadow_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.samplercubeshadow_fragment
if (!m_ditheringEnabled)
{
- const int increasingDirectionSize = isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg.getWidth();
- const int constantDirectionSize = isVerticallyIncreasing ? renderedImg.getWidth() : renderedImg.getHeight();
+ const int increasingDirectionSize = isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg.getWidth();
+ const int constantDirectionSize = isVerticallyIncreasing ? renderedImg.getWidth() : renderedImg.getHeight();
+ bool colorHasChanged = false;
for (int incrPos = 0; incrPos < increasingDirectionSize; incrPos++)
{
if (constPos > 0 && clr != prevConstantDirectionPix)
{
- log << TestLog::Message
- << "Failure: colors should be constant per " << (isVerticallyIncreasing ? "row" : "column")
- << " (since dithering is disabled), but the color at position (" << x << ", " << y << ") is " << clr
- << " and does not equal the color at (" << (isVerticallyIncreasing ? x-1 : x) << ", " << (isVerticallyIncreasing ? y : y-1) << "), which is " << prevConstantDirectionPix
- << TestLog::EndMessage;
+ // Allow color to change once to take into account possibly
+ // discontinuity between triangles
+ if (colorHasChanged)
+ {
+ log << TestLog::Message
+ << "Failure: colors should be constant per " << (isVerticallyIncreasing ? "row" : "column")
+ << " (since dithering is disabled), but the color at position (" << x << ", " << y << ") is " << clr
+ << " and does not equal the color at (" << (isVerticallyIncreasing ? x-1 : x) << ", " << (isVerticallyIncreasing ? y : y-1) << "), which is " << prevConstantDirectionPix
+ << TestLog::EndMessage;
- return false;
+ return false;
+ }
+ else
+ colorHasChanged = true;
}
prevConstantDirectionPix = clr;
if (!m_ditheringEnabled)
{
- const int increasingDirectionSize = isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg.getWidth();
- const int constantDirectionSize = isVerticallyIncreasing ? renderedImg.getWidth() : renderedImg.getHeight();
+ const int increasingDirectionSize = isVerticallyIncreasing ? renderedImg.getHeight() : renderedImg.getWidth();
+ const int constantDirectionSize = isVerticallyIncreasing ? renderedImg.getWidth() : renderedImg.getHeight();
+ bool colorHasChanged = false;
for (int incrPos = 0; incrPos < increasingDirectionSize; incrPos++)
{
if (constPos > 0 && clr != prevConstantDirectionPix)
{
- log << TestLog::Message
- << "Failure: colors should be constant per " << (isVerticallyIncreasing ? "row" : "column")
- << " (since dithering is disabled), but the color at position (" << x << ", " << y << ") is " << clr
- << " and does not equal the color at (" << (isVerticallyIncreasing ? x-1 : x) << ", " << (isVerticallyIncreasing ? y : y-1) << "), which is " << prevConstantDirectionPix
- << TestLog::EndMessage;
+ if (colorHasChanged)
+ {
+ log << TestLog::Message
+ << "Failure: colors should be constant per " << (isVerticallyIncreasing ? "row" : "column")
+ << " (since dithering is disabled), but the color at position (" << x << ", " << y << ") is " << clr
+ << " and does not equal the color at (" << (isVerticallyIncreasing ? x-1 : x) << ", " << (isVerticallyIncreasing ? y : y-1) << "), which is " << prevConstantDirectionPix
+ << TestLog::EndMessage;
- return false;
+ return false;
+ }
+ else
+ colorHasChanged = true;
}
prevConstantDirectionPix = clr;