diff options
author | Marek Olšák <[email protected]> | 2020-03-20 21:12:38 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-28 00:58:34 +0000 |
commit | 65e9239977963c5caaef12cfd6b6c6e285f86381 (patch) | |
tree | 1ef35ef80d5b1bf0fcd567d103e2a603cae7f97c /src/gallium | |
parent | be9455bdf767dd851c56075e6dd84b27e95dcfc2 (diff) |
radeonsi: add num_vbos_in_user_sgprs into the shader cache key
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_shaders.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 21299563777..ce7e791be3d 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -79,6 +79,9 @@ void si_get_ir_cache_key(struct si_shader_selector *sel, bool ngg, bool es, sel->screen->debug_flags & DBG(FS_CORRECT_DERIVS_AFTER_KILL)) shader_variant_flags |= 1 << 3; + /* This varies depending on whether compute-based culling is enabled. */ + shader_variant_flags |= sel->screen->num_vbos_in_user_sgprs << 4; + struct mesa_sha1 ctx; _mesa_sha1_init(&ctx); _mesa_sha1_update(&ctx, &shader_variant_flags, 4); |