anv: Disable tracking of clear color on color attachment
Xe2+ platforms don't need it because of its new fast-clear and compression design. Fixes: Vulkan CTS dEQP-VK.pipeline.pipeline_library.multisample. sample_locations_ext.draw.depth.samples_4. separate_subpass_clear_attachments src/intel/vulkan/anv_private.h:5439: anv_image_get_fast_clear_type_addr: Assertion `device->info->ver < 20' failed. Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29966>
This commit is contained in:
@@ -1862,12 +1862,14 @@ clear_color_attachment(struct anv_cmd_buffer *cmd_buffer,
|
||||
&clear_color);
|
||||
}
|
||||
|
||||
anv_cmd_buffer_mark_image_fast_cleared(cmd_buffer, iview->image,
|
||||
iview->planes[0].isl.format,
|
||||
clear_color);
|
||||
anv_cmd_buffer_load_clear_color_from_image(cmd_buffer,
|
||||
att->surface_state.state,
|
||||
iview->image);
|
||||
if (cmd_buffer->device->info->ver < 20) {
|
||||
anv_cmd_buffer_mark_image_fast_cleared(cmd_buffer, iview->image,
|
||||
iview->planes[0].isl.format,
|
||||
clear_color);
|
||||
anv_cmd_buffer_load_clear_color_from_image(cmd_buffer,
|
||||
att->surface_state.state,
|
||||
iview->image);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user