summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_tgsi.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-07-25 16:06:45 -0600
committerBrian Paul <[email protected]>2011-09-23 07:58:48 -0600
commit9bd15aef865352b9234fedae76617fc51c71e6d5 (patch)
tree52e9f15ec416b54b18c021be42abeaa0e99bd20e /src/gallium/drivers/svga/svga_tgsi.h
parent49a6f5e68eeb6b23bb040cfc1f93befc2f1eb35a (diff)
svga: implement texture swizzling
This exposes the GL_EXT_texture_swizzle extension and allows the various depth texture modes to be implemented properly. This, plus a follow-on texture/shadow change fixes quite a few piglit GLSL shadow sampler test failures.
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi.h')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h
index bd63bf5c264..214e113aaaa 100644
--- a/src/gallium/drivers/svga/svga_tgsi.h
+++ b/src/gallium/drivers/svga/svga_tgsi.h
@@ -60,6 +60,10 @@ struct svga_fs_compile_key
unsigned width_height_idx:7;
unsigned texture_target:8;
unsigned sprite_texgen:1;
+ unsigned swizzle_r:3;
+ unsigned swizzle_g:3;
+ unsigned swizzle_b:3;
+ unsigned swizzle_a:3;
} tex[PIPE_MAX_SAMPLERS];
};