mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
gallivm: Fix anisotropic sampling with num_mips=1
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23515>
This commit is contained in:
parent
d99dca86ce
commit
3101f900a0
1 changed files with 1 additions and 1 deletions
|
|
@ -2139,7 +2139,7 @@ lp_build_sample_aniso(struct lp_build_sample_context *bld,
|
|||
scaling = lp_build_int_to_float(&bld->levelf_bld, scaling);
|
||||
scaling = lp_build_rcp(&bld->levelf_bld, scaling);
|
||||
|
||||
if (bld->num_lods != length) {
|
||||
if (bld->levelf_bld.type.length != length) {
|
||||
if (bld->levelf_bld.type.length == 1) {
|
||||
scaling = lp_build_broadcast_scalar(coord_bld,
|
||||
scaling);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue