mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 16:40:30 +01:00
nouveau/ws: assert on broken channel
no point in continuing Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
008e9768ad
commit
1de656bce3
1 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "nouveau_push.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <nouveau_drm.h>
|
||||
#include <nouveau/nouveau.h>
|
||||
#include <sys/mman.h>
|
||||
|
|
@ -150,7 +151,12 @@ nouveau_ws_push_submit(
|
|||
req.nr_push = 1;
|
||||
req.push = (uintptr_t)&req_push;
|
||||
|
||||
return drmCommandWriteRead(pdev->fd, DRM_NOUVEAU_GEM_PUSHBUF, &req, sizeof(req));
|
||||
int ret = drmCommandWriteRead(pdev->fd, DRM_NOUVEAU_GEM_PUSHBUF, &req, sizeof(req));
|
||||
|
||||
/* TODO: later we want to report that the channel is gone, but for now just assert */
|
||||
assert(ret != -ENODEV);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue