anv: Claim to be a discrete GPU if has_lmem
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5599>
This commit is contained in:
parent
b6a1063c2e
commit
d31dd81292
|
@ -2007,7 +2007,9 @@ void anv_GetPhysicalDeviceProperties(
|
|||
.driverVersion = vk_get_driver_version(),
|
||||
.vendorID = 0x8086,
|
||||
.deviceID = pdevice->info.chipset_id,
|
||||
.deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
|
||||
.deviceType = pdevice->info.has_local_mem ?
|
||||
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU :
|
||||
VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
|
||||
.limits = limits,
|
||||
.sparseProperties = {0}, /* Broadwell doesn't do sparse. */
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue