pps: Open writable renderer node in DrmDevice::create
DrmDevice::create_all correctly opened the node with O_RDWR, while
DrmDevice::create was not, causing failure to create writable buffer.
Fixes pps-config on Freedreno.
Fixes: 1cc72b2aef
("pps: Gfx-pps v0.3.0")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16406>
This commit is contained in:
parent
e4ad1b5b33
commit
6bf4ae002a
|
@ -101,7 +101,7 @@ std::optional<DrmDevice> DrmDevice::create(int32_t gpu_num)
|
|||
|
||||
if (num_devices > 0 && gpu_num < num_devices) {
|
||||
drmDevicePtr device = devices[gpu_num];
|
||||
int fd = open(device->nodes[DRM_NODE_RENDER], O_RDONLY);
|
||||
int fd = open(device->nodes[DRM_NODE_RENDER], O_RDWR);
|
||||
ret = create_drm_device(fd, gpu_num);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue