diff options
author | Michal Krol <[email protected]> | 2010-01-06 18:36:45 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-07 07:58:07 +0100 |
commit | 8d38ef455196e6ddda22536e435638a02a7b48f3 (patch) | |
tree | 5899a81d62d8b01d28a909b9edb6d5c89f2b92d5 /src/gallium/drivers/svga/svga_tgsi.h | |
parent | 6f498a7eff26dc055c0a1f75ce3102aa4a1a0141 (diff) |
svga: Fix fs key size computation and key comparison.
This also allows us to have texture_target
back as a bitfield and save us a few bytes.
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h index 043b99115f7..737a2213af5 100644 --- a/src/gallium/drivers/svga/svga_tgsi.h +++ b/src/gallium/drivers/svga/svga_tgsi.h @@ -56,7 +56,7 @@ struct svga_fs_compile_key unsigned compare_func:3; unsigned unnormalized:1; unsigned width_height_idx:7; - ubyte texture_target; + unsigned texture_target:8; } tex[PIPE_MAX_SAMPLERS]; }; @@ -119,8 +119,7 @@ static INLINE unsigned svga_vs_key_size( const struct svga_vs_compile_key *key ) static INLINE unsigned svga_fs_key_size( const struct svga_fs_compile_key *key ) { - return (const char *)&key->tex[key->num_textures].texture_target - - (const char *)key; + return (const char *)&key->tex[key->num_textures] - (const char *)key; } struct svga_shader_result * |