diff options
author | Chad Versace <[email protected]> | 2011-09-26 16:23:26 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-10-10 13:24:11 -0700 |
commit | f378e8fea0e6bfda2018ee14a99757bde329e0a7 (patch) | |
tree | f802d813b9a9ca3d7481b1b0617731a04aac4994 /src/mesa/drivers/dri/i965/brw_gs.h | |
parent | 9559ca600dde0877fe0abd04dd789bd5a3cdfbde (diff) |
i965: Change type of brw_context.primitive from GLenum to hardware primitive
For example, GL_TRIANLGES is converted to _3DPRIM_TRILIST.
The conversion is necessary because HiZ and MSAA resolve operations emit
a 3DPRIM_RECTLIST, which cannot be conveyed by GLenum.
As a consequence, brw_gs_prog_key.primitive is also converted.
v2
----
- [anholt] Split brw_set_prim into brw/gen6 variants in previous commit,
since not much code is really shared between the two.
- [anholt] Replace switch statements with table lookups, since this is
a hot path.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_gs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.h b/src/mesa/drivers/dri/i965/brw_gs.h index cee7467628b..0e4ff3fedf6 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.h +++ b/src/mesa/drivers/dri/i965/brw_gs.h @@ -41,7 +41,7 @@ struct brw_gs_prog_key { GLbitfield64 attrs; - GLuint primitive:4; + GLuint primitive:8; /**< Hardware primitive, such as _3DPRIM_TRILIST. */ GLuint pv_first:1; GLuint need_gs_prog:1; GLuint userclip_active:1; |