mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
radv: fix creating null devices if KHR_display is enabled
Found this while replaying pipelines with Fossilize, it worked fine with vkpipeline-db. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3959> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3959>
This commit is contained in:
parent
ef0abe5404
commit
d2e4435c20
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ radv_physical_device_init(struct radv_physical_device *device,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instance->enabled_extensions.KHR_display) {
|
if (drm_device && instance->enabled_extensions.KHR_display) {
|
||||||
master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC);
|
master_fd = open(drm_device->nodes[DRM_NODE_PRIMARY], O_RDWR | O_CLOEXEC);
|
||||||
if (master_fd >= 0) {
|
if (master_fd >= 0) {
|
||||||
uint32_t accel_working = 0;
|
uint32_t accel_working = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue