nouveau/winsys: Set channel_alloc.tt_ctxdma_handle

Reviewed-by: Thomas H.P. Andersen <phomes@gmail.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36617>
This commit is contained in:
Mel Henning 2025-08-06 18:10:08 -04:00 committed by Marge Bot
parent b71b6a03c2
commit 3ce4504da7

View file

@ -132,6 +132,13 @@ nouveau_ws_3d_context_init(struct nouveau_ws_device *dev,
uint32_t classes[NOUVEAU_WS_CONTEXT_MAX_CLASSES];
uint32_t base;
req.fb_ctxdma_handle = 0xffffffff;
if (engines == NOUVEAU_WS_ENGINE_COPY && dev->info.has_transfer_queue) {
req.tt_ctxdma_handle = NOUVEAU_FIFO_ENGINE_CE;
} else {
req.tt_ctxdma_handle = NOUVEAU_FIFO_ENGINE_GR;
}
int ret = drmCommandWriteRead(dev->fd, DRM_NOUVEAU_CHANNEL_ALLOC, &req, sizeof(req));
if (ret)
return ret;