Mesa (master): i965: Enable VS on SNB.

Eric Anholt anholt at kemper.freedesktop.org
Mon Mar 22 22:05:34 UTC 2010


Module: Mesa
Branch: master
Commit: edc8a99d1dc9963f61c3ecb5fdf481efae359ce4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=edc8a99d1dc9963f61c3ecb5fdf481efae359ce4

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Mar 19 16:00:31 2010 -0700

i965: Enable VS on SNB.

It appears that the thing that was killing VS threads was the
gratuitous NOP that replaced the gratuitous jump from OPCODE_END to
the nearby OPCODE_END implementation.  With that gone, we can move on
to the rest of the pipeline.

---

 src/mesa/drivers/dri/i965/gen6_vs_state.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_vs_state.c b/src/mesa/drivers/dri/i965/gen6_vs_state.c
index fe597df..5916a13 100644
--- a/src/mesa/drivers/dri/i965/gen6_vs_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_vs_state.c
@@ -100,7 +100,8 @@ upload_vs_state(struct brw_context *brw)
 	     (brw->vs.prog_data->urb_read_length << GEN6_VS_URB_READ_LENGTH_SHIFT) |
 	     (0 << GEN6_VS_URB_ENTRY_READ_OFFSET_SHIFT));
    OUT_BATCH((0 << GEN6_VS_MAX_THREADS_SHIFT) |
-	     GEN6_VS_STATISTICS_ENABLE);
+	     GEN6_VS_STATISTICS_ENABLE |
+	     GEN6_VS_ENABLE);
    ADVANCE_BATCH();
 
    intel_batchbuffer_emit_mi_flush(intel->batch);




More information about the mesa-commit mailing list