mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
i965: Rearrange VS cache key struct.
No functional change. This patch rearranges the struct brw_vs_prog_key so that the two fields related to clipping are together, and documents those fields. This should make the patches that follow easier to comprehend, since they add additional clipping-related fields to this structure. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
c163072197
commit
a1b37ebe75
1 changed files with 11 additions and 1 deletions
|
|
@ -45,11 +45,21 @@ struct brw_vs_prog_key {
|
|||
* Number of channels of the vertex attribute that need GL_FIXED rescaling
|
||||
*/
|
||||
uint8_t gl_fixed_input_size[VERT_ATTRIB_MAX];
|
||||
|
||||
/**
|
||||
* Number of user clip planes (or clip distances) that are active.
|
||||
*/
|
||||
GLuint nr_userclip:4;
|
||||
|
||||
/**
|
||||
* True if the shader uses gl_ClipDistance, regardless of whether any clip
|
||||
* flags are enabled.
|
||||
*/
|
||||
GLuint uses_clip_distance:1;
|
||||
|
||||
GLuint copy_edgeflag:1;
|
||||
GLuint point_coord_replace:8;
|
||||
GLuint clamp_vertex_color:1;
|
||||
GLuint uses_clip_distance:1;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue