diff options
author | Brian Paul <[email protected]> | 2011-07-25 16:06:45 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-23 07:58:48 -0600 |
commit | 9bd15aef865352b9234fedae76617fc51c71e6d5 (patch) | |
tree | 52e9f15ec416b54b18c021be42abeaa0e99bd20e /src/gallium/drivers/svga/svga_screen.c | |
parent | 49a6f5e68eeb6b23bb040cfc1f93befc2f1eb35a (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_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 3a1ac9e1d93..87b48dea173 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -148,6 +148,8 @@ svga_get_paramf(struct pipe_screen *screen, enum pipe_cap param) return 0; case PIPE_CAP_TEXTURE_SHADOW_MAP: return 1; + case PIPE_CAP_TEXTURE_SWIZZLE: + return 1; case PIPE_CAP_MAX_TEXTURE_2D_LEVELS: { |