radeonsi: pass at most 3 images and/or shader buffers via user SGPRs for compute

This should slightly decrease shader lifetime.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5209>
This commit is contained in:
Marek Olšák
2020-05-21 05:13:25 -04:00
committed by Marge Bot
parent 877c56bfdc
commit 85a6bcca61
8 changed files with 130 additions and 3 deletions

View File

@@ -171,6 +171,8 @@ struct si_shader_context {
/* CS */
struct ac_arg block_size;
struct ac_arg cs_user_data;
struct ac_arg cs_shaderbuf[3];
struct ac_arg cs_image[3];
struct ac_llvm_compiler *compiler;