radeonsi: implement inlinable uniforms
authorMarek Olšák <marek.olsak@amd.com>
Tue, 29 Sep 2020 21:43:24 +0000 (17:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 30 Oct 2020 11:07:22 +0000 (11:07 +0000)
commitb7501184b90a20015885b3f2276a7a5ceaef31a7
treeef037ea0e4b16e1b3a8496934a2713e6a97cb207
parent6d058ac6c997efe05bca13ba3f381b4d55a13e40
radeonsi: implement inlinable uniforms

This improves performance for uber shaders.

It must be enabled using the new driconf option.

The driver compiles the specialized shaders in another thread without stalls,
same as all other optimizations.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7057>
src/gallium/drivers/radeonsi/si_debug_options.h
src/gallium/drivers/radeonsi/si_descriptors.c
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_nir.c
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c