turnip: fix SP_HS_WAVE_INPUT_SIZE value
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Mon, 21 Dec 2020 18:45:42 +0000 (20:45 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Mar 2021 16:50:11 +0000 (16:50 +0000)
commitd968995c67f5e3a48e49015184f9ea1f143251ec
tree43f2714ff7a77f4d910cca9ec6f302b56f653c19
parent7b7532b80618685c5637225efef12196b725976a
turnip: fix SP_HS_WAVE_INPUT_SIZE value

It appears that storage for varyings in a wave has an upper
limit of wavesize * max_a831 where max_a831 is 64.
Exceeding the limit seam to force gpu to reduce primitives
processed per wave, at least calculations make sense with
such interpretation.

With blob SP_HS_WAVE_INPUT_SIZE never exceeds 64 and setting
it to 65 in freedreno leads to a hang.

Copied from the commit to freedreno e5499ca2

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8187>
src/freedreno/vulkan/tu_pipeline.c