From: Eric Anholt Date: Thu, 25 Feb 2010 21:46:45 +0000 (-0800) Subject: i965: Fix the SNB URB entry count setup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17ddb7c7e897719fa28fb64ac3ecbc7b7e9f8d24;p=mesa.git i965: Fix the SNB URB entry count setup. --- diff --git a/src/mesa/drivers/dri/i965/gen6_urb.c b/src/mesa/drivers/dri/i965/gen6_urb.c index 55f7ac7727e..5445e4035a9 100644 --- a/src/mesa/drivers/dri/i965/gen6_urb.c +++ b/src/mesa/drivers/dri/i965/gen6_urb.c @@ -64,9 +64,9 @@ upload_urb(struct brw_context *brw) BEGIN_BATCH(3); OUT_BATCH(CMD_URB << 16 | (3 - 2)); OUT_BATCH(((brw->urb.vs_size - 1) << GEN6_URB_VS_SIZE_SHIFT) | - ((brw->urb.nr_vs_entries) << GEN6_URB_VS_SIZE_SHIFT)); + ((brw->urb.nr_vs_entries) << GEN6_URB_VS_ENTRIES_SHIFT)); OUT_BATCH(((brw->urb.vs_size - 1) << GEN6_URB_GS_SIZE_SHIFT) | - ((brw->urb.nr_gs_entries) << GEN6_URB_GS_SIZE_SHIFT)); + ((brw->urb.nr_gs_entries) << GEN6_URB_GS_ENTRIES_SHIFT)); ADVANCE_BATCH(); intel_batchbuffer_emit_mi_flush(intel->batch);