i965: Set GS rendering enabled even when the GS stage is disabled.
authorEric Anholt <eric@anholt.net>
Mon, 1 Feb 2010 17:41:26 +0000 (09:41 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 25 Feb 2010 18:53:08 +0000 (10:53 -0800)
This is copying the behavior of other drivers.

src/mesa/drivers/dri/i965/gen6_gs_state.c

index 761059c96a0670b1f542da07ed457a2527c6cdeb..9a4a13810ad3b9e915b8d249f595bf7f7fe62a44 100644 (file)
@@ -49,7 +49,8 @@ upload_gs_state(struct brw_context *brw)
                (brw->gs.prog_data->urb_read_length << GEN6_GS_URB_READ_LENGTH_SHIFT) |
                (0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT));
       OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) |
-               GEN6_GS_STATISTICS_ENABLE);
+               GEN6_GS_STATISTICS_ENABLE |
+               GEN6_GS_RENDERING_ENABLE);
       OUT_BATCH(GEN6_GS_ENABLE);
       ADVANCE_BATCH();
    } else {
@@ -63,7 +64,8 @@ upload_gs_state(struct brw_context *brw)
                (0 << GEN6_GS_URB_READ_LENGTH_SHIFT) |
                (0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT));
       OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) |
-               GEN6_GS_STATISTICS_ENABLE);
+               GEN6_GS_STATISTICS_ENABLE |
+               GEN6_GS_RENDERING_ENABLE);
       OUT_BATCH(0);
       ADVANCE_BATCH();
    }