[Piglit] [PATCH] arb_color_buffer_float-render fix for RGBA8_SNORM
Marek Olšák
maraeo at gmail.com
Fri Jul 8 03:53:24 PDT 2011
Pushed, thanks.
Marek
On Wed, Jul 6, 2011 at 12:47 PM, Vadim Girlin <vadimgirlin at gmail.com> wrote:
> ---
> 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
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
More information about the Piglit
mailing list