From 30ead72e80e5b7ba5c5dfc46261b4d249f4fa382 Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Sun, 5 Mar 2023 15:33:19 -0800 Subject: [PATCH] nir: Allow nir_texop_tg4 in implicit derivative This allow us to invoke the quad helper. v2: (Georg) - Add check for is_gather_implicit_lod Fixes: 48158636bf1b ("nir: add is_gather_implicit_lod") Reviewed-by: Ian Romanick Signed-off-by: Sagar Ghuge Part-of: --- src/compiler/nir/nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 485a4bec239..579f9b5a125 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -3145,6 +3145,8 @@ nir_tex_instr_has_implicit_derivative(const nir_tex_instr *instr) case nir_texop_txb: case nir_texop_lod: return true; + case nir_texop_tg4: + return instr->is_gather_implicit_lod; default: return false; }