summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-12-17 18:41:18 -0800
committerEric Anholt <[email protected]>2010-02-25 10:53:08 -0800
commitdd743fa36fa9303c2a2d0e7d3798fdc00ef43287 (patch)
tree7573e7346febf15452fdf7022585a79ef3e65102
parentda577ee8800b940fcf416716c13133cd43c3d035 (diff)
i965: Fixup Sandybridge GS packet from doc updates.
-rw-r--r--src/mesa/drivers/dri/i965/gen6_gs_state.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_gs_state.c b/src/mesa/drivers/dri/i965/gen6_gs_state.c
index 47702f7f302..761059c96a0 100644
--- a/src/mesa/drivers/dri/i965/gen6_gs_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_gs_state.c
@@ -39,8 +39,8 @@ upload_gs_state(struct brw_context *brw)
struct intel_context *intel = &brw->intel;
if (brw->gs.prog_bo) {
- BEGIN_BATCH(6);
- OUT_BATCH(CMD_3D_GS_STATE << 16 | (6 - 2));
+ BEGIN_BATCH(7);
+ OUT_BATCH(CMD_3D_GS_STATE << 16 | (7 - 2));
OUT_RELOC(brw->gs.prog_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
OUT_BATCH((0 << GEN6_GS_SAMPLER_COUNT_SHIFT) |
(0 << GEN6_GS_BINDING_TABLE_ENTRY_COUNT_SHIFT));
@@ -50,10 +50,11 @@ upload_gs_state(struct brw_context *brw)
(0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT));
OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) |
GEN6_GS_STATISTICS_ENABLE);
+ OUT_BATCH(GEN6_GS_ENABLE);
ADVANCE_BATCH();
} else {
- BEGIN_BATCH(6);
- OUT_BATCH(CMD_3D_GS_STATE << 16 | (6 - 2));
+ BEGIN_BATCH(7);
+ OUT_BATCH(CMD_3D_GS_STATE << 16 | (7 - 2));
OUT_BATCH(0); /* prog_bo */
OUT_BATCH((0 << GEN6_GS_SAMPLER_COUNT_SHIFT) |
(0 << GEN6_GS_BINDING_TABLE_ENTRY_COUNT_SHIFT));
@@ -63,6 +64,7 @@ upload_gs_state(struct brw_context *brw)
(0 << GEN6_GS_URB_ENTRY_READ_OFFSET_SHIFT));
OUT_BATCH((0 << GEN6_GS_MAX_THREADS_SHIFT) |
GEN6_GS_STATISTICS_ENABLE);
+ OUT_BATCH(0);
ADVANCE_BATCH();
}