From: Rob Clark Date: Sun, 13 Mar 2016 18:03:04 +0000 (-0400) Subject: freedreno/ir3: lower extract_byte/word X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e73ac84b939d6aec5e9cd602898b798d528f653f;p=mesa.git freedreno/ir3: lower extract_byte/word The following commits broke things by starting to feed us unhandled extract_u16/extract_u8 opcodes: commit 905ff861982450831a56d112036f68a751337441 Author: Matt Turner AuthorDate: Wed Feb 3 14:28:31 2016 -0800 Commit: Matt Turner CommitDate: Fri Mar 4 11:52:34 2016 -0800 nir: Recognize open-coded extract_u16. commit 76289fbfa84a06ef4db8ad44ea0eb88ad0be8d5c Author: Matt Turner AuthorDate: Thu Jan 21 09:09:48 2016 -0800 Commit: Matt Turner CommitDate: Fri Mar 4 11:52:34 2016 -0800 nir: Recognize open-coded extract_u8. Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c index 565b9c32c1d..73c65d6ad27 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c @@ -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); }