mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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: ad0037fcfe ("mesa/st: set lower_point_size for tes/gs during program update")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9631>
This commit is contained in:
parent
cc314361e3
commit
bdfe0e3ef4
1 changed files with 4 additions and 1 deletions
|
|
@ -831,11 +831,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue