mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
i965/gs: Add new primitive types.
As part of its support for geometry shaders, GL 3.2 introduces four new primitive types: GL_LINES_ADJACENCY, GL_LINE_STRIP_ADJACENCY, GL_TRIANGLES_ADJACENCY, and GL_TRIANGLE_STRIP_ADJACENCY. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
93b5f71179
commit
9791af90e3
2 changed files with 7 additions and 3 deletions
|
|
@ -1638,7 +1638,7 @@ 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];
|
||||
extern const GLuint prim_to_hw_prim[GL_TRIANGLE_STRIP_ADJACENCY+1];
|
||||
|
||||
void
|
||||
brw_setup_vec4_key_clip_info(struct brw_context *brw,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
#define FILE_DEBUG_FLAG DEBUG_PRIMS
|
||||
|
||||
const GLuint prim_to_hw_prim[GL_POLYGON+1] = {
|
||||
const GLuint prim_to_hw_prim[GL_TRIANGLE_STRIP_ADJACENCY+1] = {
|
||||
_3DPRIM_POINTLIST,
|
||||
_3DPRIM_LINELIST,
|
||||
_3DPRIM_LINELOOP,
|
||||
|
|
@ -64,7 +64,11 @@ const GLuint prim_to_hw_prim[GL_POLYGON+1] = {
|
|||
_3DPRIM_TRIFAN,
|
||||
_3DPRIM_QUADLIST,
|
||||
_3DPRIM_QUADSTRIP,
|
||||
_3DPRIM_POLYGON
|
||||
_3DPRIM_POLYGON,
|
||||
_3DPRIM_LINELIST_ADJ,
|
||||
_3DPRIM_LINESTRIP_ADJ,
|
||||
_3DPRIM_TRILIST_ADJ,
|
||||
_3DPRIM_TRISTRIP_ADJ,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue