mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
fd8ed50812
commit
43ff387aa6
2 changed files with 4 additions and 3 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue