anv: Don't advertise Float64 or Int64 on HW without 64-bit types

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Jason Ekstrand
2018-04-30 15:15:37 -07:00
parent d8db5986ce
commit d5a0787f03

View File

@@ -755,8 +755,10 @@ void anv_GetPhysicalDeviceFeatures(
.shaderStorageImageArrayDynamicIndexing = true,
.shaderClipDistance = true,
.shaderCullDistance = true,
.shaderFloat64 = pdevice->info.gen >= 8,
.shaderInt64 = pdevice->info.gen >= 8,
.shaderFloat64 = pdevice->info.gen >= 8 &&
pdevice->info.has_64bit_types,
.shaderInt64 = pdevice->info.gen >= 8 &&
pdevice->info.has_64bit_types,
.shaderInt16 = false,
.shaderResourceMinLod = false,
.variableMultisampleRate = false,