llvmpipe: fix caching for texture shaders.
authorDave Airlie <airlied@redhat.com>
Tue, 10 Oct 2023 06:41:21 +0000 (16:41 +1000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 4 Jan 2024 18:36:07 +0000 (18:36 +0000)
commit955d7b3fa36baae45e7264ab3acf371648cc094f
tree80eaf58fa17cff5834f5249ed68bf063d5eaa2e7
parent4ea8f20b19ad968ddbf91fe4b4e58003b63cd8b9
llvmpipe: fix caching for texture shaders.

caching only works if you check the size and store the result,
later the size is always set.

Fixes: f675e4ee8231 ("llvmpipe: Pre compile sample functions")
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25648>
(cherry picked from commit c2f79d7fb1c3c4931bee8171750a67d867366fda)
.pick_status.json
src/gallium/drivers/llvmpipe/lp_texture_handle.c