Mesa (master): i965: Assert out on gen6 VS constant buffer reads that hang the GPU for now.

Eric Anholt anholt at kemper.freedesktop.org
Mon Oct 18 19:58:20 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Oct 18 12:41:10 2010 -0700

i965: Assert out on gen6 VS constant buffer reads that hang the GPU for now.

---

 src/mesa/drivers/dri/i965/brw_vs_emit.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c
index e2bff13..ce33479 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -930,6 +930,8 @@ get_constant(struct brw_vs_compile *c,
 
    assert(argIndex < 3);
 
+   assert(c->func.brw->intel.gen < 6); /* FINISHME */
+
    if (c->current_const[argIndex].index != src->Index) {
       /* Keep track of the last constant loaded in this slot, for reuse. */
       c->current_const[argIndex].index = src->Index;
@@ -966,6 +968,8 @@ get_reladdr_constant(struct brw_vs_compile *c,
 
    assert(argIndex < 3);
 
+   assert(c->func.brw->intel.gen < 6); /* FINISHME */
+
    /* Can't reuse a reladdr constant load. */
    c->current_const[argIndex].index = -1;
 




More information about the mesa-commit mailing list