mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
radv: Only apply mipmap view adjustments to block compressed images
This workaround need not apply to subsampled formats. Signed-off-by: John Brooks <john@fastquake.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17970>
This commit is contained in:
parent
88401e031b
commit
ea84143d1e
1 changed files with 2 additions and 1 deletions
|
|
@ -2164,7 +2164,8 @@ radv_image_view_init(struct radv_image_view *iview, struct radv_device *device,
|
|||
* the plain converted dimensions the physical layout is correct.
|
||||
*/
|
||||
if (device->physical_device->rad_info.gfx_level >= GFX9 &&
|
||||
vk_format_is_compressed(image->vk.format) && !vk_format_is_compressed(iview->vk.format)) {
|
||||
vk_format_is_block_compressed(image->vk.format) &&
|
||||
!vk_format_is_block_compressed(iview->vk.format)) {
|
||||
/* If we have multiple levels in the view we should ideally take the last level,
|
||||
* but the mip calculation has a max(..., 1) so walking back to the base mip in an
|
||||
* useful way is hard. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue