mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
anv: Advertise support for shaderBufferFloat64AtomicMinMax
v1: - Just check has_lsc (Jason) Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12566>
This commit is contained in:
parent
527468f56f
commit
9ffd05b41e
2 changed files with 3 additions and 2 deletions
|
|
@ -1709,7 +1709,7 @@ void anv_GetPhysicalDeviceFeatures2(
|
|||
VkPhysicalDeviceShaderAtomicFloatFeaturesEXT *features = (void *)ext;
|
||||
features->shaderBufferFloat32Atomics = true;
|
||||
features->shaderBufferFloat32AtomicAdd = pdevice->info.has_lsc;
|
||||
features->shaderBufferFloat64Atomics = false;
|
||||
features->shaderBufferFloat64Atomics = pdevice->info.has_lsc;
|
||||
features->shaderBufferFloat64AtomicAdd = false;
|
||||
features->shaderSharedFloat32Atomics = true;
|
||||
features->shaderSharedFloat32AtomicAdd = false;
|
||||
|
|
@ -1728,7 +1728,7 @@ void anv_GetPhysicalDeviceFeatures2(
|
|||
features->shaderBufferFloat16AtomicAdd = false;
|
||||
features->shaderBufferFloat16AtomicMinMax = false;
|
||||
features->shaderBufferFloat32AtomicMinMax = pdevice->info.ver >= 9;
|
||||
features->shaderBufferFloat64AtomicMinMax = false;
|
||||
features->shaderBufferFloat64AtomicMinMax = pdevice->info.has_lsc;
|
||||
features->shaderSharedFloat16Atomics = false;
|
||||
features->shaderSharedFloat16AtomicAdd = false;
|
||||
features->shaderSharedFloat16AtomicMinMax = false;
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ anv_shader_compile_to_nir(struct anv_device *device,
|
|||
.float32_atomic_add = pdevice->info.has_lsc,
|
||||
.float32_atomic_min_max = pdevice->info.ver >= 9,
|
||||
.float64 = pdevice->info.ver >= 8,
|
||||
.float64_atomic_min_max = pdevice->info.has_lsc,
|
||||
.fragment_shader_sample_interlock = pdevice->info.ver >= 9,
|
||||
.fragment_shader_pixel_interlock = pdevice->info.ver >= 9,
|
||||
.geometry_streams = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue