mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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> (cherry picked from commit6bf4ae002a)
This commit is contained in:
parent
8a560a87b4
commit
1b28c52e44
2 changed files with 2 additions and 2 deletions
|
|
@ -1597,7 +1597,7 @@
|
|||
"description": "pps: Open writable renderer node in DrmDevice::create",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "1cc72b2aef82373247466c2e7b81970c867ad0fa"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue