mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
glsl: store OES/EXT point_size extension enablement to shader struct
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15228>
This commit is contained in:
parent
02906baba7
commit
53cbba83eb
2 changed files with 4 additions and 0 deletions
|
|
@ -1831,6 +1831,7 @@ set_shader_inout_layout(struct gl_shader *shader,
|
|||
}
|
||||
break;
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
shader->OES_tessellation_point_size_enable = state->OES_tessellation_point_size_enable || state->EXT_tessellation_point_size_enable;
|
||||
shader->info.TessEval._PrimitiveMode = TESS_PRIMITIVE_UNSPECIFIED;
|
||||
if (state->in_qualifier->flags.q.prim_type) {
|
||||
switch (state->in_qualifier->prim_type) {
|
||||
|
|
@ -1859,6 +1860,7 @@ set_shader_inout_layout(struct gl_shader *shader,
|
|||
shader->info.TessEval.PointMode = state->in_qualifier->point_mode;
|
||||
break;
|
||||
case MESA_SHADER_GEOMETRY:
|
||||
shader->OES_geometry_point_size_enable = state->OES_geometry_point_size_enable || state->EXT_geometry_point_size_enable;
|
||||
shader->info.Geom.VerticesOut = -1;
|
||||
if (state->out_qualifier->flags.q.max_vertices) {
|
||||
unsigned qual_max_vertices;
|
||||
|
|
|
|||
|
|
@ -185,6 +185,8 @@ struct gl_shader
|
|||
bool EarlyFragmentTests;
|
||||
|
||||
bool ARB_fragment_coord_conventions_enable;
|
||||
bool OES_geometry_point_size_enable;
|
||||
bool OES_tessellation_point_size_enable;
|
||||
|
||||
bool redeclares_gl_fragcoord;
|
||||
bool uses_gl_fragcoord;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue