Using the image format is incorrect when the view has a different
format than the image. Instead, the view format needs to be used.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106687
goto fail;
/* DCC */
- ret = radv_format_pack_clear_color(iview->image->vk_format,
+ ret = radv_format_pack_clear_color(iview->vk_format,
clear_color, &clear_value);
if (ret == false)
goto fail;
bool can_avoid_fast_clear_elim;
bool need_decompress_pass = false;
- vi_get_fast_clear_parameters(iview->image->vk_format,
+ vi_get_fast_clear_parameters(iview->vk_format,
&clear_value, &reset_value,
&can_avoid_fast_clear_elim);