diff options
author | Brian Paul <brianp@vmware.com> | 2015-12-10 14:55:33 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2015-12-11 16:54:58 -0700 |
commit | 27d5be0b8fafecefc4f0378ca940cea8c0415715 (patch) | |
tree | 8088de43323125e9cc3f9d6405c26a2b25acaaac /src/gallium/drivers/svga/svga_context.h | |
parent | 1291e910d591a27cb00ca8e41e93abd588f5e445 (diff) | |
download | external_mesa3d-27d5be0b8fafecefc4f0378ca940cea8c0415715.zip external_mesa3d-27d5be0b8fafecefc4f0378ca940cea8c0415715.tar.gz external_mesa3d-27d5be0b8fafecefc4f0378ca940cea8c0415715.tar.bz2 |
svga: avoid emitting redundant SetSamplers() commands
This greatly reduces the number of SetSamplers() commands for some
applications.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index db9491b..78e346a 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -347,6 +347,9 @@ struct svga_hw_draw_state SVGA3dSurfaceFormat ib_format; unsigned ib_offset; + unsigned num_samplers[PIPE_SHADER_TYPES]; + SVGA3dSamplerId samplers[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS]; + /* used for rebinding */ unsigned num_sampler_views[PIPE_SHADER_TYPES]; unsigned default_constbuf_size[PIPE_SHADER_TYPES]; |