From 8be54474619ff36230a7ed5f38a6bb3dc7f77a5e Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 9 Nov 2020 13:36:00 +0100 Subject: [PATCH] pan/bi: Extract shadowmap comparator Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 747074c4d7a..b7573115cc9 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1970,6 +1970,10 @@ emit_texc(bi_context *ctx, nir_tex_instr *instr) desc.offset_or_bias_disable = true; break; + case nir_tex_src_comparator: + dregs[BIFROST_TEX_DREG_SHADOW] = index; + break; + default: unreachable("Unhandled src type in texc emit"); }