diff options
author | Michal Krol <michal@vmware.com> | 2010-03-02 12:03:24 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2010-03-02 12:03:24 +0100 |
commit | f59f28093ea827bd234d8e1a36bdd56a9fce5f09 (patch) | |
tree | 5a5350bfc84af951fbf5bd0fe861137eef9d3fbe /src/gallium/drivers/softpipe/sp_tex_tile_cache.h | |
parent | 5587097b53afbce52f7e26568d2dde11de96e1ec (diff) |
softpipe: Implement sampler view swizzling.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_tile_cache.h')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_tile_cache.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h index ac6886a3df..c562f721be 100644 --- a/src/gallium/drivers/softpipe/sp_tex_tile_cache.h +++ b/src/gallium/drivers/softpipe/sp_tex_tile_cache.h @@ -83,6 +83,11 @@ struct softpipe_tex_tile_cache void *tex_trans_map; int tex_face, tex_level, tex_z; + unsigned swizzle_r; + unsigned swizzle_g; + unsigned swizzle_b; + unsigned swizzle_a; + struct softpipe_tex_cached_tile *last_tile; /**< most recently retrieved tile */ }; @@ -101,8 +106,8 @@ extern void sp_tex_tile_cache_unmap_transfers(struct softpipe_tex_tile_cache *tc); extern void -sp_tex_tile_cache_set_texture(struct softpipe_tex_tile_cache *tc, - struct pipe_texture *texture); +sp_tex_tile_cache_set_sampler_view(struct softpipe_tex_tile_cache *tc, + struct pipe_sampler_view *view); void sp_tex_tile_cache_validate_texture(struct softpipe_tex_tile_cache *tc); |