anv/hasvk: tweak loading failure messages
We don't want to print out too many : MESA: error: ../src/intel/vulkan/anv_device.c:769: anv does not support Intel(R) HD Graphics (HSW GT1); use hasvk (VK_ERROR_INCOMPATIBLE_DRIVER) whenever anv is not able to load on a HSW device. Similarly hasvk should not print error on anything gfx9+. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18208>
This commit is contained in:
committed by
Marge Bot
parent
bc68e7b564
commit
802fa57274
@@ -766,8 +766,8 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
"Vulkan not yet supported on %s", devinfo.name);
|
||||
goto fail_fd;
|
||||
} else if (devinfo.ver < 9) {
|
||||
result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
|
||||
"anv does not support %s; use hasvk", devinfo.name);
|
||||
/* Silently fail here, hasvk should pick up this device. */
|
||||
result = VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
goto fail_fd;
|
||||
}
|
||||
|
||||
|
||||
@@ -774,8 +774,10 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
/* Gfx8 fully supported */
|
||||
is_alpha = false;
|
||||
} else {
|
||||
result = vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER,
|
||||
"Vulkan not yet supported on %s", devinfo.name);
|
||||
/* Silently fail here, anv will either pick up this device or display an
|
||||
* error message.
|
||||
*/
|
||||
result = VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
goto fail_fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user