mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
zink: add layout to sampler descriptor hash
this can have more than one value, so avoid stale cache entries Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15173>
This commit is contained in:
parent
7431c30999
commit
cd7ea80e70
1 changed files with 2 additions and 0 deletions
|
|
@ -1539,6 +1539,8 @@ calc_descriptor_state_hash_sampler(struct zink_context *ctx, struct zink_shader
|
||||||
if (is_buffer)
|
if (is_buffer)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
hash = XXH32(&ctx->di.textures[shader][idx + k].imageLayout, sizeof(VkImageLayout), hash);
|
||||||
|
|
||||||
struct zink_sampler_state *sampler_state = ctx->sampler_states[shader][idx + k];
|
struct zink_sampler_state *sampler_state = ctx->sampler_states[shader][idx + k];
|
||||||
|
|
||||||
if (sampler_state)
|
if (sampler_state)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue