Mesa (nvc0): nv50: allow accidentally disabled IB index buffers again

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Mar 2 20:01:41 UTC 2011


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Wed Mar  2 15:41:19 2011 +0100

nv50: allow accidentally disabled IB index buffers again

Must have sneaked in from debugging.

---

 src/gallium/drivers/nv50/nv50_vbo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c
index e94a2b6..85cf9bd 100644
--- a/src/gallium/drivers/nv50/nv50_vbo.c
+++ b/src/gallium/drivers/nv50/nv50_vbo.c
@@ -536,7 +536,7 @@ nv50_draw_elements(struct nv50_context *nv50, boolean shorten,
       nv50->state.index_bias = index_bias;
    }
 
-   if (nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer) && 0) {
+   if (nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer)) {
       struct nv04_resource *res = nv04_resource(nv50->idxbuf.buffer);
       unsigned offset = res->offset + nv50->idxbuf.offset;
 




More information about the mesa-commit mailing list