i965: Make prim_to_hw_prim accessible outside brw_draw.c.
authorPaul Berry <stereotype441@gmail.com>
Wed, 27 Mar 2013 19:39:37 +0000 (12:39 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 23 Aug 2013 18:03:38 +0000 (11:03 -0700)
We will need access to this array in order to configure the geometry
shader.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c

index fa7f3d6067cb3571400c574d3f69ea1bad4e1f61..60dab488450925c0e0fc6c5d02dc7ef41f5795cb 100644 (file)
@@ -1584,6 +1584,8 @@ gen7_emit_depth_stencil_hiz(struct brw_context *brw,
                             uint32_t width, uint32_t height,
                             uint32_t tile_x, uint32_t tile_y);
 
+extern const GLuint prim_to_hw_prim[GL_POLYGON+1];
+
 #ifdef __cplusplus
 }
 #endif
index 424d39fb8c2cd77d811a98a69ba4a7816ca3454a..c7164acfb02a22bc601076db29aabf0d02ae1936 100644 (file)
@@ -54,7 +54,7 @@
 
 #define FILE_DEBUG_FLAG DEBUG_PRIMS
 
-static GLuint prim_to_hw_prim[GL_POLYGON+1] = {
+const GLuint prim_to_hw_prim[GL_POLYGON+1] = {
    _3DPRIM_POINTLIST,
    _3DPRIM_LINELIST,
    _3DPRIM_LINELOOP,