[Piglit] [PATCH] arb_color_buffer_float-render fix for RGBA8_SNORM
Vadim Girlin
vadimgirlin at gmail.com
Wed Jul 6 03:47:14 PDT 2011
---
If I'm not missing something, then it seems arb_color_buffer_float-render
incorrectly expects that blend color won't be clamped when rendering to
RGBA8_SNORM. This patch fixes it, but probably another solution might be
preferred, e.g. to change blend color or something else.
tests/spec/arb_color_buffer_float/render.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/spec/arb_color_buffer_float/render.c b/tests/spec/arb_color_buffer_float/render.c
index e3eddec..9ad26a1 100644
--- a/tests/spec/arb_color_buffer_float/render.c
+++ b/tests/spec/arb_color_buffer_float/render.c
@@ -168,7 +168,7 @@ GLboolean test()
if (blend == 2 && !logicop)
{
if (fixed_snorm)
- expected = clamped ? clamped_pixels_mul_2_signed_clamped : signed_clamped_pixels_mul_2_signed_clamped;
+ expected = clamped ? clamped_pixels : signed_clamped_pixels;
else if (fixed)
expected = clamped_pixels;
else
--
1.7.6
More information about the Piglit
mailing list