ac/surface: fix radv import dmabuf from radeonsi
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33391>
This commit is contained in:
@@ -3704,6 +3704,9 @@ bool ac_surface_apply_umd_metadata(const struct radeon_info *info, struct radeon
|
||||
assert(0);
|
||||
return false;
|
||||
}
|
||||
|
||||
surf->num_meta_levels = desc_last_level + 1;
|
||||
surf->flags &= ~RADEON_SURF_DISABLE_DCC;
|
||||
} else {
|
||||
/* Disable DCC. dcc_offset is always set by texture_from_handle
|
||||
* and must be cleared here.
|
||||
|
||||
Reference in New Issue
Block a user