llvmpipe: disable anisotropic filtering for non-2D textures

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Roland Scheidegger <roland.scheidegger@broadcom.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33103>
This commit is contained in:
Aleksi Sapon 2025-01-17 16:16:13 -05:00 committed by Marge Bot
parent fd8ed50812
commit 43ff387aa6
2 changed files with 4 additions and 3 deletions

View file

@ -3207,6 +3207,10 @@ lp_build_sample_soa_code(struct gallivm_state *gallivm,
return;
}
if (texture_dims(target) != 2) {
derived_sampler_state.aniso = 0;
}
assert(type.floating);
/* Setup our build context */

View file

@ -440,9 +440,6 @@ compile_sample_function(struct llvmpipe_context *ctx, struct lp_static_texture_s
supported = false;
if (sampler->aniso) {
if (texture_dims(texture->target) != 2)
supported = false;
if (util_format_is_pure_integer(texture->format))
supported = false;
}