freedreno/ir3: lower extract_byte/word
authorRob Clark <robclark@freedesktop.org>
Sun, 13 Mar 2016 18:03:04 +0000 (14:03 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 13 Mar 2016 18:10:57 +0000 (14:10 -0400)
The following commits broke things by starting to feed us unhandled
extract_u16/extract_u8 opcodes:

commit 905ff861982450831a56d112036f68a751337441
Author:     Matt Turner <mattst88@gmail.com>
AuthorDate: Wed Feb 3 14:28:31 2016 -0800
Commit:     Matt Turner <mattst88@gmail.com>
CommitDate: Fri Mar 4 11:52:34 2016 -0800

    nir: Recognize open-coded extract_u16.

commit 76289fbfa84a06ef4db8ad44ea0eb88ad0be8d5c
Author:     Matt Turner <mattst88@gmail.com>
AuthorDate: Thu Jan 21 09:09:48 2016 -0800
Commit:     Matt Turner <mattst88@gmail.com>
CommitDate: Fri Mar 4 11:52:34 2016 -0800

    nir: Recognize open-coded extract_u8.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_nir.c

index 565b9c32c1dfaeda49eff54ef24140ce3ccb4fb8..73c65d6ad272983388aa06128aaae7f5f41904ce 100644 (file)
@@ -45,6 +45,8 @@ ir3_tgsi_to_nir(const struct tgsi_token *tokens)
                        .lower_flrp = true,
                        .lower_ffract = true,
                        .native_integers = true,
+                       .lower_extract_byte = true,
+                       .lower_extract_word = true,
        };
        return tgsi_to_nir(tokens, &options);
 }