agx: Add support for EGL_NV_context_priority_realtime

Signed-off-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
Mary Guillemard 2024-11-02 16:02:28 +01:00 committed by Marge Bot
parent ddc6d9e984
commit 1a621a6967

View file

@ -1856,6 +1856,8 @@ agx_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
priority = 2;
else if (flags & PIPE_CONTEXT_PRIORITY_HIGH)
priority = 1;
else if (flags & PIPE_CONTEXT_PRIORITY_REALTIME)
priority = 0;
ctx->queue_id = agx_create_command_queue(agx_device(screen),
DRM_ASAHI_QUEUE_CAP_RENDER |
@ -2205,7 +2207,7 @@ agx_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_CONTEXT_PRIORITY_MASK:
return PIPE_CONTEXT_PRIORITY_LOW | PIPE_CONTEXT_PRIORITY_MEDIUM |
PIPE_CONTEXT_PRIORITY_HIGH;
PIPE_CONTEXT_PRIORITY_HIGH | PIPE_CONTEXT_PRIORITY_REALTIME;
default:
return u_pipe_screen_get_param_defaults(pscreen, param);