nak: Set has_imad32 conditionally

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30099>
This commit is contained in:
Christian Gmeiner 2024-07-10 08:00:26 +02:00 committed by Marge Bot
parent b209fedebe
commit e019517d6e

View file

@ -148,6 +148,7 @@ fn nir_options(dev: &nv_device_info) -> nir_shader_compiler_options {
op.lower_uadd_carry = true;
op.lower_usub_borrow = true;
op.has_iadd3 = dev.sm >= 70;
op.has_imad32 = dev.sm >= 70;
op.has_sdot_4x8 = dev.sm >= 70;
op.has_udot_4x8 = dev.sm >= 70;
op.has_sudot_4x8 = dev.sm >= 70;