radeonsi: advertise GL_NV_timeline_semaphore

Set max_timeline_semaphore_difference = UINT64_MAX when timeline syncobj
is supported and GFX uses the kernel queue path (not userq). The GL
state tracker auto-enables GL_NV_timeline_semaphore when this cap is
non-zero.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/15113
Author: Claude Opus 4.6 <noreply@anthropic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40526>
This commit is contained in:
Qiang Yu 2026-03-19 17:15:51 +08:00 committed by Marge Bot
parent 26418f0f58
commit 00b1d77176

View file

@ -1368,4 +1368,8 @@ void si_init_screen_caps(struct si_screen *sscreen)
if (sscreen->ws->va_range)
sscreen->ws->va_range(sscreen->ws, &caps->min_vma, &caps->max_vma);
if (sscreen->info.has_timeline_syncobj &&
!(sscreen->info.userq_ip_mask & BITFIELD_BIT(AMD_IP_GFX)))
caps->max_timeline_semaphore_difference = UINT64_MAX;
}