Mesa (master): nvc0: restrict "constant vbo" logic to fermi/kepler classes

Ben Skeggs darktama at kemper.freedesktop.org
Wed May 14 23:55:04 UTC 2014


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

Author: Ben Skeggs <bskeggs at redhat.com>
Date:   Fri May  9 15:55:53 2014 +1000

nvc0: restrict "constant vbo" logic to fermi/kepler classes

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
index 74f8a76..27e5cd8 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
@@ -949,7 +949,7 @@ nvc0_set_vertex_buffers(struct pipe_context *pipe,
 
        if (vb[i].user_buffer) {
           nvc0->vbo_user |= 1 << dst_index;
-          if (!vb[i].stride)
+          if (!vb[i].stride && nvc0->screen->eng3d->oclass < GM107_3D_CLASS)
              nvc0->constant_vbos |= 1 << dst_index;
           else
              nvc0->constant_vbos &= ~(1 << dst_index);




More information about the mesa-commit mailing list