venus: RegisterCustomBorderColorEXT can be async when index is requested

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40085>
This commit is contained in:
Yiwei Zhang 2026-02-24 22:05:55 -08:00 committed by Marge Bot
parent 718ecfc008
commit f0e4ef50e3

View file

@ -156,6 +156,12 @@ vn_RegisterCustomBorderColorEXT(
{
struct vn_device *dev = vn_device_from_handle(device);
if (requestIndex == VK_TRUE) {
vn_async_vkRegisterCustomBorderColorEXT(
dev->primary_ring, device, pBorderColor, requestIndex, pIndex);
return VK_SUCCESS;
}
/* TODO manage indexes to make it async */
return vn_call_vkRegisterCustomBorderColorEXT(
dev->primary_ring, device, pBorderColor, requestIndex, pIndex);