Mesa (master): nouveau: Expect right params to tex_transfer_destroy().

Younes Manton ymanton at kemper.freedesktop.org
Tue Jun 30 02:23:06 UTC 2009


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

Author: Younes Manton <younes.m at gmail.com>
Date:   Sat Jun 27 11:43:01 2009 -0400

nouveau: Expect right params to tex_transfer_destroy().

Never crashed on x86, ptx is in the same stack slot in either case.
Thanks to Bob Gleitsmann for catching this.

---

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

diff --git a/src/gallium/drivers/nv40/nv40_transfer.c b/src/gallium/drivers/nv40/nv40_transfer.c
index ce45055..6d92ac3 100644
--- a/src/gallium/drivers/nv40/nv40_transfer.c
+++ b/src/gallium/drivers/nv40/nv40_transfer.c
@@ -136,7 +136,7 @@ nv40_transfer_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
 }
 
 static void
-nv40_transfer_del(struct pipe_screen *pscreen, struct pipe_transfer *ptx)
+nv40_transfer_del(struct pipe_transfer *ptx)
 {
 	struct nv40_transfer *tx = (struct nv40_transfer *)ptx;
 




More information about the mesa-commit mailing list