diff options
author | Jordan Justen <[email protected]> | 2018-02-09 18:36:43 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2018-02-27 11:15:10 -0800 |
commit | 6b274d5cc6186c06dbb8b594e54022e75f80ed8e (patch) | |
tree | 27204b2efdb01736168ef4b297251f95fb9da503 /src/intel/vulkan/anv_device.c | |
parent | b9af043716effe1af50370e696ced175415fe060 (diff) |
intel/vulkan: Support INTEL_NO_HW environment variable
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a83b7a39f6a..dd5f2f49286 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -294,6 +294,8 @@ anv_physical_device_init(struct anv_physical_device *device, assert(strlen(path) < ARRAY_SIZE(device->path)); strncpy(device->path, path, ARRAY_SIZE(device->path)); + device->no_hw = getenv("INTEL_NO_HW") != NULL; + device->chipset_id = anv_gem_get_param(fd, I915_PARAM_CHIPSET_ID); if (!device->chipset_id) { result = vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); @@ -1368,6 +1370,7 @@ VkResult anv_CreateDevice( device->_loader_data.loaderMagic = ICD_LOADER_MAGIC; device->instance = physical_device->instance; device->chipset_id = physical_device->chipset_id; + device->no_hw = physical_device->no_hw; device->lost = false; if (pAllocator) |