Skip to content
Snippets Groups Projects
Commit d3887f23 authored by Erik Faye-Lund's avatar Erik Faye-Lund Committed by Dylan Baker
Browse files

gallium/st: fix shader_has_one_variant


I think we need to care about this here as well, otherwise the variant
logic might be short-circuited.

Fixes: ad0037fc ("mesa/st: set lower_point_size for tes/gs during program update")
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!9631>
(cherry picked from commit bdfe0e3e)
parent aafc4fe9
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@
"description": "gallium/st: fix shader_has_one_variant",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "ad0037fcfe19655e9cee7c0bed80adc6c0dc967a"
},
......
......@@ -809,11 +809,14 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
st->shader_has_one_variant[MESA_SHADER_TESS_EVAL] =
st->has_shareable_shaders &&
!st->clamp_frag_depth_in_shader &&
!st->clamp_vert_color_in_shader;
!st->clamp_vert_color_in_shader &&
!st->lower_point_size;
st->shader_has_one_variant[MESA_SHADER_GEOMETRY] =
st->has_shareable_shaders &&
!st->clamp_frag_depth_in_shader &&
!st->clamp_vert_color_in_shader &&
!st->lower_point_size &&
!st->lower_ucp;
st->shader_has_one_variant[MESA_SHADER_COMPUTE] = st->has_shareable_shaders;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment