radv: remove dead variables after splitting per member structs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Aug 2018 10:34:13 +0000 (12:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Aug 2018 11:57:18 +0000 (13:57 +0200)
commit24ee53231da84a1be5ec08abebe8a2ff6aa019ca
treee66a69d17b430bda13f4f33d4c1bd6eb5a1823e1
parentbea4d4c78c3a6a85d1c7d0ad5c2c5694e19d20f2
radv: remove dead variables after splitting per member structs

Otherwise, nir_lower_clip_cull_distance_arrays might report
wrong number of output clips/culls because it relies on
shader output variables and some of them might be dead.

This fixes a rendering issue with Dolphin and Super Mario
Sunshine.

Fixes: b0c643d8f5 ("spirv: Use NIR per-member splitting")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107610
CC: 18.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_shader.c