diff options
author | Brian Paul <[email protected]> | 2018-08-23 09:25:15 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-08-29 11:29:07 -0600 |
commit | fb7e462c979b29b65b841811cfe97a26c9cc93ee (patch) | |
tree | 18ea9e38e9c45fbf22e5e49ea003a32d60640d2f /src/gallium/drivers/svga/svga_shader.h | |
parent | 8331d69a877bcc656ec19dd48ba5975138336f59 (diff) |
svga: fix vgpu9 sprite coordinate bug
Setting GL_POINT_SPRITE_COORD_ORIGIN to GL_LOWER_LEFT did not work for
vgpu9. We can use the rasterizer sprite_coord_enable bitfield as-is.
We need to index into it using the TGSI semantic index, not the
register index.
This fixes the Piglit fbo-gl_pointcoord and glsl-fs-pointcoord tests.
Testing done: Piglit, Mesa sprite demos
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_shader.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_shader.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_shader.h b/src/gallium/drivers/svga/svga_shader.h index 70d12469827..b703e048b24 100644 --- a/src/gallium/drivers/svga/svga_shader.h +++ b/src/gallium/drivers/svga/svga_shader.h @@ -93,7 +93,7 @@ struct svga_compile_key unsigned num_unnormalized_coords:8; unsigned clip_plane_enable:PIPE_MAX_CLIP_PLANES; unsigned sprite_origin_lower_left:1; - unsigned sprite_coord_enable; + uint16_t sprite_coord_enable; struct { unsigned compare_mode:1; unsigned compare_func:3; @@ -101,7 +101,6 @@ struct svga_compile_key unsigned texel_bias:1; unsigned width_height_idx:5; /**< texture unit */ unsigned is_array:1; - unsigned sprite_texgen:1; unsigned swizzle_r:3; unsigned swizzle_g:3; unsigned swizzle_b:3; |