mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
pan/midgard: Correct component count clamping PSIZ
Kind of a funky corner case that does not (as far as I know) apply to
organic shaders from GLES but does pop up in generated shaders from the
fixed-function desktop pipeline.
Fixes: bb483a9166 ("panfrost: Clamp point size")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
c4e6d759dd
commit
fe783c5b0c
1 changed files with 2 additions and 1 deletions
|
|
@ -54,7 +54,8 @@ nir_clamp_psiz(nir_shader *shader, float min_size, float max_size)
|
|||
nir_builder_init(&b, func->impl);
|
||||
b.cursor = nir_before_instr(instr);
|
||||
|
||||
nir_ssa_def *in_size = nir_ssa_for_src(&b, intr->src[1], 1);
|
||||
nir_ssa_def *in_size = nir_ssa_for_src(&b, intr->src[1],
|
||||
intr->num_components);
|
||||
|
||||
nir_ssa_def *clamped =
|
||||
nir_fmin(&b,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue