diff options
author | Paul Berry <[email protected]> | 2013-03-27 12:39:37 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-23 11:03:38 -0700 |
commit | 5b5d10bcd353bf5bef1cd12f3a84625e56af3bb0 (patch) | |
tree | fc221ede738bb2bdea520250d4c748f222d637f6 | |
parent | 16512ba70d5a9b4645508030acf1572ee7c660a3 (diff) |
i965: Make prim_to_hw_prim accessible outside brw_draw.c.
We will need access to this array in order to configure the geometry
shader.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index fa7f3d6067c..60dab488450 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -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 diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 424d39fb8c2..c7164acfb02 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -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, |