From: Matthieu Castet Date: Sun, 16 Sep 2007 16:57:03 +0000 (+0200) Subject: nouveau : opps I introduce a bug when cleaning vertex pos attribute swap patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e605f2828fb2e5d38a1f68ed78300f441c86dfa5;p=mesa.git nouveau : opps I introduce a bug when cleaning vertex pos attribute swap patch --- diff --git a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c index 22144b66117..545600af647 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_swtcl.c +++ b/src/mesa/drivers/dri/nouveau/nv10_swtcl.c @@ -75,8 +75,8 @@ static const int default_attr_size[8]={3,3,3,4,3,1,4,4}; #define OUT_RING_VERT_RAW(ptr,vertex_size) do{ \ /* if the vertex size is not null, we have at least pos attribute */ \ - OUT_RINGp((ptr) + default_attr_size[_TNL_ATTRIB_POS], (vertex_size) - default_attr_size[_TNL_ATTRIB_POS]); \ - OUT_RINGp((ptr), default_attr_size[_TNL_ATTRIB_POS]); \ + OUT_RINGp((uint32_t *)(ptr) + default_attr_size[_TNL_ATTRIB_POS], (vertex_size) - default_attr_size[_TNL_ATTRIB_POS]); \ + OUT_RINGp((uint32_t *)(ptr), default_attr_size[_TNL_ATTRIB_POS]); \ }while(0) #define OUT_RING_VERT(nmesa,ptr,vertex_size) do{ \