Mesa (master): nvfx: Include missing header in nvfx_vertprog.c.

Vinson Lee vlee at kemper.freedesktop.org
Sun Aug 22 19:46:13 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Aug 22 12:45:04 2010 -0700

nvfx: Include missing header in nvfx_vertprog.c.

Include draw_context.h for draw_*_vertex_shader symbols.

Fixes the following GCC warning.
nvfx_vertprog.c: In function 'nvfx_vp_state_create':
nvfx_vertprog.c:1276: warning: implicit declaration of function 'draw_create_vertex_shader'
nvfx_vertprog.c:1276: warning: assignment makes pointer from integer without a cast
nvfx_vertprog.c: In function 'nvfx_vp_state_delete':
nvfx_vertprog.c:1298: warning: implicit declaration of function 'draw_delete_vertex_shader'

---

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

diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index f8f1af9..3b8d385 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -9,6 +9,8 @@
 #include "tgsi/tgsi_dump.h"
 #include "tgsi/tgsi_util.h"
 
+#include "draw/draw_context.h"
+
 #include "nvfx_context.h"
 #include "nvfx_state.h"
 #include "nvfx_resource.h"




More information about the mesa-commit mailing list