summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_sf_state.c6
-rw-r--r--src/mesa/drivers/dri/i965/gen7_sf_state.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c
index 5cbfe78c6f0..3eca786814f 100644
--- a/src/mesa/drivers/dri/i965/gen6_sf_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c
@@ -123,16 +123,12 @@ upload_sf_state(struct brw_context *brw)
/* _NEW_BUFFER */
GLboolean render_to_fbo = brw->intel.ctx.DrawBuffer->Name != 0;
int attr = 0, input_index = 0;
- int urb_entry_read_offset;
+ int urb_entry_read_offset = 1;
float point_size;
uint16_t attr_overrides[FRAG_ATTRIB_MAX];
int nr_userclip;
/* _NEW_TRANSFORM */
- if (ctx->Transform.ClipPlanesEnabled)
- urb_entry_read_offset = 2;
- else
- urb_entry_read_offset = 1;
nr_userclip = brw_count_bits(ctx->Transform.ClipPlanesEnabled);
brw_compute_vue_map(&vue_map, intel, nr_userclip, vs_outputs_written);
diff --git a/src/mesa/drivers/dri/i965/gen7_sf_state.c b/src/mesa/drivers/dri/i965/gen7_sf_state.c
index b1bec1a0a22..75dc6dab4ca 100644
--- a/src/mesa/drivers/dri/i965/gen7_sf_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_sf_state.c
@@ -43,7 +43,7 @@ upload_sbe_state(struct brw_context *brw)
int i;
int attr = 0, input_index = 0;
/* _NEW_TRANSFORM */
- int urb_entry_read_offset = ctx->Transform.ClipPlanesEnabled ? 2 : 1;
+ int urb_entry_read_offset = 1;
int nr_userclip = brw_count_bits(ctx->Transform.ClipPlanesEnabled);
uint16_t attr_overrides[FRAG_ATTRIB_MAX];