radeonsi: if VS and TCS have the same number of threads, merge the conditonals
authorMarek Olšák <marek.olsak@amd.com>
Sat, 14 Nov 2020 06:12:29 +0000 (01:12 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Nov 2020 02:22:21 +0000 (02:22 +0000)
commit1190808eca6c23d18ff1c2ba7abc99601b221bb5
tree1ea844d879f5202eb4787b5851ac602d17d350a9
parent0aba1743611109545bba86bf055a04ecbe210132
radeonsi: if VS and TCS have the same number of threads, merge the conditonals

Instead of:
    if (VS) {
VS;
    }
    if (TCS) {
TCS;
    }

Do this if the number of threads is the same in VS and TCS:
    exec = enabled_threads;
    VS;
    TCS;

Skipping declare_vb_descriptor_input_sgprs is needed to match the VS return
values.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623>
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_internal.h
src/gallium/drivers/radeonsi/si_shader_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm_ps.c
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c