nvfx: Include missing header in nvfx_vertprog.c.
authorVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 19:45:04 +0000 (12:45 -0700)
committerVinson Lee <vlee@vmware.com>
Sun, 22 Aug 2010 19:45:04 +0000 (12:45 -0700)
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

index f8f1af98168e9298a2edd0ef51bf5fc7faae5b7a..3b8d3853b7f3297af27400358efc79c9db56c7b7 100644 (file)
@@ -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"