summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_context.h
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-09-20 11:33:35 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-09-20 11:33:35 -0400
commitcc2629f5912d1c608f830ab63f6c4e0875d2fcef (patch)
treeb8420f0bf0a8703eeefb1132e8684a97c27fbca0 /src/mesa/pipe/i915simple/i915_context.h
parent893f9cda7601fb937138629042dd9f6507eb6b5f (diff)
Make the rasterizer state in i915 use the cso semantics.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_context.h')
-rw-r--r--src/mesa/pipe/i915simple/i915_context.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_context.h b/src/mesa/pipe/i915simple/i915_context.h
index 1a7df6566b..c582b069d7 100644
--- a/src/mesa/pipe/i915simple/i915_context.h
+++ b/src/mesa/pipe/i915simple/i915_context.h
@@ -127,6 +127,20 @@ struct i915_depth_stencil_state {
unsigned depth_LIS6;
};
+struct i915_rasterizer_state {
+ int light_twoside : 1;
+ unsigned st;
+ interp_mode color_interp;
+
+ unsigned LIS4;
+ unsigned LIS7;
+ unsigned sc[1];
+
+ const struct pipe_rasterizer_state *templ;
+
+ union { float f; unsigned u; } ds[2];
+};
+
struct i915_context
{
struct pipe_context pipe;
@@ -138,7 +152,7 @@ struct i915_context
const struct i915_blend_state *blend;
const struct pipe_sampler_state *sampler[PIPE_MAX_SAMPLERS];
const struct i915_depth_stencil_state *depth_stencil;
- const struct pipe_rasterizer_state *rasterizer;
+ const struct i915_rasterizer_state *rasterizer;
const struct pipe_shader_state *fs;
struct pipe_alpha_test_state alpha_test;