gallivm/nir: lower dot products.
authorDave Airlie <airlied@redhat.com>
Mon, 26 Oct 2020 03:55:36 +0000 (13:55 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 15 Nov 2020 20:53:12 +0000 (06:53 +1000)
The nir lowering should suffice

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7595>

src/gallium/drivers/llvmpipe/lp_screen.c

index f133bbf..6a2a421 100644 (file)
@@ -548,6 +548,8 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
    .lower_bitfield_insert_to_shifts = true,
    .lower_bitfield_extract_to_shifts = true,
    .lower_sub = true,
+   .lower_fdot = true,
+   .lower_fdph = true,
    .lower_ffma16 = true,
    .lower_ffma32 = true,
    .lower_ffma64 = true,