mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 commit01266f8119)
This commit is contained in:
parent
f896a02a35
commit
3b6dd8ff1c
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue