From: Luca Barbieri Date: Tue, 13 Apr 2010 07:02:42 +0000 (+0200) Subject: nvfx: fix for 64-bit systems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50409dd71b5ec3a0c318f5c69dd3e0f568129711;p=mesa.git nvfx: fix for 64-bit systems Thanks to Patrice Mandin for debugging this. --- diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c index bb8a2b63f05..8b9b5d0203c 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)