summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_context.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-20 12:34:31 -0400
committerZack Rusin <[email protected]>2007-09-20 12:34:31 -0400
commit742e32a40bf5ef1bd90b23aa0f7d451b7b7f0ba3 (patch)
tree5768af08d9a2943a5eed9856dec183f0394774c4 /src/mesa/pipe/i915simple/i915_context.h
parentcc2629f5912d1c608f830ab63f6c4e0875d2fcef (diff)
Cache the i915 sampler state.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_context.h')
-rw-r--r--src/mesa/pipe/i915simple/i915_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_context.h b/src/mesa/pipe/i915simple/i915_context.h
index c582b069d79..f1e10f34332 100644
--- a/src/mesa/pipe/i915simple/i915_context.h
+++ b/src/mesa/pipe/i915simple/i915_context.h
@@ -141,6 +141,11 @@ struct i915_rasterizer_state {
union { float f; unsigned u; } ds[2];
};
+struct i915_sampler_state {
+ unsigned state[3];
+ const struct pipe_sampler_state *templ;
+};
+
struct i915_context
{
struct pipe_context pipe;
@@ -150,7 +155,7 @@ struct i915_context
/* The most recent drawing state as set by the driver:
*/
const struct i915_blend_state *blend;
- const struct pipe_sampler_state *sampler[PIPE_MAX_SAMPLERS];
+ const struct i915_sampler_state *sampler[PIPE_MAX_SAMPLERS];
const struct i915_depth_stencil_state *depth_stencil;
const struct i915_rasterizer_state *rasterizer;
const struct pipe_shader_state *fs;