mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
b71b6a03c2
commit
3ce4504da7
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue