radv: fix setting MAX_MIP for BC views
MAX_MIP should always be the number of levels minus one from the hw
perspective.
This doesn't fix anything known.
Fixes: 98ba1e0d81 ("radv: Fix mipmap views on GFX10+")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20761>
This commit is contained in:
committed by
Marge Bot
parent
34e6530518
commit
aff5fe3f94
@@ -1048,7 +1048,7 @@ gfx10_make_texture_descriptor(struct radv_device *device, struct radv_image *ima
|
||||
unsigned max_mip =
|
||||
image->info.samples > 1 ? util_logbase2(image->info.samples) : image->info.levels - 1;
|
||||
if (nbc_view && nbc_view->valid)
|
||||
max_mip = nbc_view->max_mip;
|
||||
max_mip = nbc_view->max_mip - 1;
|
||||
|
||||
unsigned min_lod_clamped = radv_float_to_ufixed(CLAMP(min_lod, 0, 15), 8);
|
||||
if (device->physical_device->rad_info.gfx_level >= GFX11) {
|
||||
|
||||
Reference in New Issue
Block a user