53d937c2e8
We were using the CT0CA (Control List Executor Current Address) and CT0EA (Control List Executor End Address) registers, but that would only wait for the CLE to reach the end of the list, but there could still be things in the rest of the pipeline. Even if that seems to work with the current simulator, the correct way to do that is using the BFC (Binning Mode Flush Count) and RFC (Rendering Mode Frame Count) registers instead. In fact, this would be needed with a newer simulator snapshot, in order to get the followint CTS tests working: dEQP-VK.api.copy_and_blit.core.resolve_image.whole_array_image.4_bit dEQP-VK.api.copy_and_blit.core.resolve_image.whole_array_image_one_region.4_bit dEQP-VK.api.copy_and_blit.core.resolve_image.whole_copy_before_resolving.4_bit dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail dEQP-VK.api.image_clearing.core.clear_color_image.1d.optimal.multiple_layers.r32g32_uint dEQP-VK.api.image_clearing.core.clear_color_image.1d.optimal.remaining_array_layers_twostep.r16_sint Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11039>