Aethersx2 some issues with Nvidia tegra driver

The ps2 emulator linux arm64 can’t work tested jetpack 32.7.1
If I enabled debug device vulkan layers ON return

Frame buffer size set to  512x1280 (512x1280)
Vulkan debug report: (UNASSIGNED-CoreValidation-DrawState-QueryNotReset) Validation Error: [ UNASSIGNED-CoreValidation-DrawState-QueryNotReset ] Object 0: handle = 0x1f935730, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0x9cacd67a | vkCmdWriteTimestamp(): VkQueryPool 0x40000000004[] and query 3: query not reset. After query pool creation, each query must be reset before it is used. Queries must also be reset between uses.
(ActivateCommandBuffer) vkGetQueryPoolResults failed:  (1: VK_NOT_READY)
Frame buffer size set to  512x1280 (512x1280)
(ActivateCommandBuffer) vkGetQueryPoolResults failed:  (1: VK_NOT_READY)
(ActivateCommandBuffer) vkGetQueryPoolResults failed:  (1: VK_NOT_READY)
(ActivateCommandBuffer) vkGetQueryPoolResults failed:  (1: VK_NOT_READY)
(DoSubmitCommandBuffer) vkQueueSubmit failed:  (-4: VK_ERROR_DEVICE_LOST)
/home/user/aethersx2/common/Vulkan/Context.cpp(1072) : assertion failed:
    Function:  void Vulkan::Context::DoSubmitCommandBuffer(u32, VkSemaphore, VkSemaphore)
    Thread:    MTGS
    Condition: false
    Message:   Failed to submit command buffer.
Trace/breakpoint trap (core dumped)

The binary can download from desktop/linux • AetherSX2 Download Archive

you needed chmod +x first and run ./filename.Appimage

Also VK_EXT_provoking_vertex and VK_ARM_rasterization_order_attachment_access is not supported

Failed buffer and overflow crash dumped should not fail.

With lavapipe a basic driver and other mesa3d driver working correctly
I think it’s a bug in the NVIDIA driver.


This would need other users to share experience. Probably other users has tried the same emulator and can provide suggestion.

The problem is OpenGL backend egl 12291 egl_bad_alloc for some reason.
And Vulkan backend failed to sumit command buffer vkGetQueryPoolResults failed and in ones seconds vkQueeSubmit failed VK_Error_device_lost
I have similar errors when the rendering is not exclusive fullscreen
The context from init in vulkan is based from pcsx2 core pcsx2/Context.cpp at master · PCSX2/pcsx2 · GitHub

	void Context::DoSubmitCommandBuffer(u32 index, VkSemaphore wait_semaphore, VkSemaphore signal_semaphore)
		FrameResources& resources = m_frame_resources[index];

		VkSubmitInfo submit_info = {VK_STRUCTURE_TYPE_SUBMIT_INFO, nullptr, 0, nullptr, &wait_bits,
			resources.init_buffer_used ? 2u : 1u,
			resources.init_buffer_used ? : &resources.command_buffers[1], 0, nullptr};

		if (wait_semaphore != VK_NULL_HANDLE)
			submit_info.pWaitSemaphores = &wait_semaphore;
			submit_info.waitSemaphoreCount = 1;

		if (signal_semaphore != VK_NULL_HANDLE)
			submit_info.signalSemaphoreCount = 1;
			submit_info.pSignalSemaphores = &signal_semaphore;

		VkResult res = vkQueueSubmit(m_graphics_queue, 1, &submit_info, resources.fence);
		if (res != VK_SUCCESS)
			LOG_VULKAN_ERROR(res, "vkQueueSubmit failed: ");
			pxFailRel("Failed to submit command buffer.");

If the aarch64 aethersx2 linux port is updated I will try to try it again if the bugs are fixes soon or not corrected, I ask that it be kept open to have a follow-up of the error and you can have everything in order.

The strange thing is that it works on rpi4 at least the Vulkan renderer and several mesa3d drivers i.e simple lavapipe no idea what could be what is matching in the nvgpu driver.
This problem is not affected in stack if running in tx1 Android build

The dump complains about assertion failed the function I’ve bombed above.
Thank you for your attention.