summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-05 19:58:02 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-05 19:58:02 +0000
commit658da189b62c4086c08950f3da5767e628235b55 (patch)
treefe44bad7b13c90d30c6de1598dd2c96dbed4174b /src
parent8f0e51be4784273baef692583940964bc04b78ef (diff)
i965g: remove duplicate viewport state in brw_context
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i965/brw_cc.c2
-rw-r--r--src/gallium/drivers/i965/brw_context.h5
-rw-r--r--src/gallium/drivers/i965/brw_sf_state.c2
3 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/i965/brw_cc.c b/src/gallium/drivers/i965/brw_cc.c
index 8e25fe8585..ba16fc4f6b 100644
--- a/src/gallium/drivers/i965/brw_cc.c
+++ b/src/gallium/drivers/i965/brw_cc.c
@@ -66,7 +66,7 @@ static enum pipe_error prepare_cc_vp( struct brw_context *brw )
memset(&ccv, 0, sizeof(ccv));
/* PIPE_NEW_VIEWPORT */
- calc_sane_viewport( &brw->curr.vp, &svp );
+ calc_sane_viewport( &brw->curr.viewport, &svp );
ccv.min_depth = svp.near;
ccv.max_depth = svp.far;
diff --git a/src/gallium/drivers/i965/brw_context.h b/src/gallium/drivers/i965/brw_context.h
index f853255261..177fe2172d 100644
--- a/src/gallium/drivers/i965/brw_context.h
+++ b/src/gallium/drivers/i965/brw_context.h
@@ -514,18 +514,15 @@ struct brw_context
unsigned num_vertex_buffers;
struct pipe_scissor_state scissor;
+ struct pipe_viewport_state viewport;
struct pipe_framebuffer_state fb;
- struct pipe_viewport_state vp;
struct pipe_clip_state ucp;
struct pipe_buffer *vertex_constants;
struct pipe_buffer *fragment_constants;
- struct pipe_viewport_state viewport;
struct brw_blend_constant_color bcc;
struct brw_polygon_stipple bps;
-
-
/**
* Index buffer for this draw_prims call.
*
diff --git a/src/gallium/drivers/i965/brw_sf_state.c b/src/gallium/drivers/i965/brw_sf_state.c
index f030f26c19..bd8fc65b9e 100644
--- a/src/gallium/drivers/i965/brw_sf_state.c
+++ b/src/gallium/drivers/i965/brw_sf_state.c
@@ -41,7 +41,7 @@
static enum pipe_error upload_sf_vp(struct brw_context *brw)
{
- const struct pipe_viewport_state *vp = &brw->curr.vp;
+ const struct pipe_viewport_state *vp = &brw->curr.viewport;
const struct pipe_scissor_state *scissor = &brw->curr.scissor;
struct brw_sf_viewport sfv;
enum pipe_error ret;