Mesa (master): nvfx: fix for 64-bit systems

Luca Barbieri lb at kemper.freedesktop.org
Tue Apr 13 00:03:38 PDT 2010


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

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Tue Apr 13 09:02:42 2010 +0200

nvfx: fix for 64-bit systems

Thanks to Patrice Mandin for debugging this.

---

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

diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
index bb8a2b6..8b9b5d0 100644
--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
+++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
@@ -492,7 +492,7 @@ nvfx_vbo_validate(struct nvfx_context *nvfx)
 	unsigned ib_format = nvfx->idxbuf_format;
 	int i;
 	int elements = MAX2(nvfx->vtxelt->num_elements, nvfx->hw_vtxelt_nr);
-	unsigned long vtxfmt[16];
+	uint32_t vtxfmt[16];
 	unsigned vb_flags = nvfx->screen->vertex_buffer_flags | NOUVEAU_BO_RD;
 
 	if (!elements)



More information about the mesa-commit mailing list