llvmpipe: Fix compiling with LP_USE_TEXTURE_CACHE

Fixes: 36eb75d ("llvmpipe: move to common sampler/image binding code")
Closes: #9359

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24243>
(cherry picked from commit 01266f8119)
This commit is contained in:
Konstantin Seurer 2023-07-19 21:19:40 +02:00 committed by Dylan Baker
parent f896a02a35
commit 3b6dd8ff1c
2 changed files with 3 additions and 2 deletions

View file

@ -25054,7 +25054,7 @@
"description": "llvmpipe: Fix compiling with LP_USE_TEXTURE_CACHE",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "36eb75d281bd0898b4b669969993f38b5fa9515b",
"notes": null

View file

@ -75,7 +75,8 @@ lp_llvm_sampler_soa_create(const struct lp_sampler_static_state *static_state,
sampler = lp_bld_llvm_sampler_soa_create(static_state, nr_samplers);
#if LP_USE_TEXTURE_CACHE
sampler->dynamic_state.base.cache_ptr = lp_llvm_texture_cache_ptr;
struct lp_sampler_dynamic_state *dynamic_state = lp_build_sampler_soa_dynamic_state(sampler);
dynamic_state->cache_ptr = lp_llvm_texture_cache_ptr;
#endif
return sampler;
}