Skip to content

Commit

Permalink
Make vulkan driver skip dgpu when we have igpu and dgpu
Browse files Browse the repository at this point in the history
In mesa vulkan driver will open igpu and dgpu together.
Currently the dgpu device can not support DRM_IOCTL_I915_GEM_SET_TILING ioctl,
And the vulkan test app will fail when the mesa open dgpu device.
This patch will skip dgpu device.

Tracked-On: OAM-110884
Signed-off-by: Kanli Hu kanli.hu@intel.com
  • Loading branch information
kanlihu authored and buildslave committed Jun 25, 2023
1 parent 1ad4090 commit bd97502
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/intel/vulkan/anv_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,11 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,

const char *primary_path = drm_device->nodes[DRM_NODE_PRIMARY];
const char *path = drm_device->nodes[DRM_NODE_RENDER];

if (path != NULL && strstr(path, "renderD129") != NULL) {
return VK_ERROR_INCOMPATIBLE_DRIVER;
}

VkResult result;
int fd;
int master_fd = -1;
Expand Down

0 comments on commit bd97502

Please sign in to comment.