i965: Fix the SNB URB entry count setup.
authorEric Anholt <eric@anholt.net>
Thu, 25 Feb 2010 21:46:45 +0000 (13:46 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 26 Feb 2010 02:36:44 +0000 (18:36 -0800)
src/mesa/drivers/dri/i965/gen6_urb.c

index 55f7ac7727ecd8e4c116db388de60f6d1b34d399..5445e4035a98d5a76e75743339d923741ff87e2e 100644 (file)
@@ -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);