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:
committed by
Marge Bot
parent
d99dca86ce
commit
3101f900a0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user