Mesa (gallium-resources): nvfx: fix compiler warning

Keith Whitwell keithw at kemper.freedesktop.org
Wed Apr 7 17:00:36 UTC 2010


Module: Mesa
Branch: gallium-resources
Commit: d040daff0642dd791ac38e9b353dc251b03fc873
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d040daff0642dd791ac38e9b353dc251b03fc873

Author: Keith Whitwell <keithw at vmware.com>
Date:   Wed Apr  7 17:25:58 2010 +0100

nvfx: fix compiler warning

---

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

diff --git a/src/gallium/drivers/nvfx/nvfx_context.c b/src/gallium/drivers/nvfx/nvfx_context.c
index 34eb8cb..61f5590 100644
--- a/src/gallium/drivers/nvfx/nvfx_context.c
+++ b/src/gallium/drivers/nvfx/nvfx_context.c
@@ -3,6 +3,7 @@
 
 #include "nvfx_context.h"
 #include "nvfx_screen.h"
+#include "nvfx_resource.h"
 
 static void
 nvfx_flush(struct pipe_context *pipe, unsigned flags,
@@ -73,7 +74,7 @@ nvfx_create(struct pipe_screen *pscreen, void *priv)
 	nvfx_init_query_functions(nvfx);
 	nvfx_init_surface_functions(nvfx);
 	nvfx_init_state_functions(nvfx);
-	nvfx_init_resource_functions(nvfx);
+	nvfx_init_resource_functions(&nvfx->pipe);
 
 	/* Create, configure, and install fallback swtnl path */
 	nvfx->draw = draw_create();




More information about the mesa-commit mailing list