diff options
Diffstat (limited to 'src/gallium/tests/graw/tex-srgb.c')
-rw-r--r-- | src/gallium/tests/graw/tex-srgb.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/tests/graw/tex-srgb.c b/src/gallium/tests/graw/tex-srgb.c index 3b43bcbf73e..9d3af94800e 100644 --- a/src/gallium/tests/graw/tex-srgb.c +++ b/src/gallium/tests/graw/tex-srgb.c @@ -176,10 +176,10 @@ static void init_tex( void ) memset(&sv_temp, 0, sizeof sv_temp); sv_temp.format = PIPE_FORMAT_B8G8R8A8_UNORM; sv_temp.texture = texture; - sv_temp.swizzle_r = PIPE_SWIZZLE_RED; - sv_temp.swizzle_g = PIPE_SWIZZLE_GREEN; - sv_temp.swizzle_b = PIPE_SWIZZLE_BLUE; - sv_temp.swizzle_a = PIPE_SWIZZLE_ALPHA; + sv_temp.swizzle_r = PIPE_SWIZZLE_X; + sv_temp.swizzle_g = PIPE_SWIZZLE_Y; + sv_temp.swizzle_b = PIPE_SWIZZLE_Z; + sv_temp.swizzle_a = PIPE_SWIZZLE_W; linear_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp); if (linear_sv == NULL) exit(0); @@ -191,10 +191,10 @@ static void init_tex( void ) memset(&sv_temp, 0, sizeof sv_temp); sv_temp.format = PIPE_FORMAT_B8G8R8A8_SRGB; sv_temp.texture = texture; - sv_temp.swizzle_r = PIPE_SWIZZLE_RED; - sv_temp.swizzle_g = PIPE_SWIZZLE_GREEN; - sv_temp.swizzle_b = PIPE_SWIZZLE_BLUE; - sv_temp.swizzle_a = PIPE_SWIZZLE_ALPHA; + sv_temp.swizzle_r = PIPE_SWIZZLE_X; + sv_temp.swizzle_g = PIPE_SWIZZLE_Y; + sv_temp.swizzle_b = PIPE_SWIZZLE_Z; + sv_temp.swizzle_a = PIPE_SWIZZLE_W; srgb_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp); if (srgb_sv == NULL) exit(0); |