From 9758555481170be6a77709dfb90206e834724c24 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Aug 2021 11:11:42 -0400 Subject: [PATCH] pan/bi: Handle Valhall texturing in helper analysis Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_helper_invocations.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panfrost/bifrost/bi_helper_invocations.c b/src/panfrost/bifrost/bi_helper_invocations.c index 975d43fd847..b69944a03d5 100644 --- a/src/panfrost/bifrost/bi_helper_invocations.c +++ b/src/panfrost/bifrost/bi_helper_invocations.c @@ -65,6 +65,7 @@ static bool bi_has_skip_bit(enum bi_opcode op) { switch (op) { + case BI_OPCODE_TEX_SINGLE: case BI_OPCODE_TEXC: case BI_OPCODE_TEXS_2D_F16: case BI_OPCODE_TEXS_2D_F32: @@ -94,6 +95,9 @@ bi_instr_uses_helpers(bi_instr *I) case BI_OPCODE_VAR_TEX_F16: case BI_OPCODE_VAR_TEX_F32: return !I->lod_mode; /* set for zero, clear for computed */ + case BI_OPCODE_TEX_SINGLE: + return (I->va_lod_mode == BI_VA_LOD_MODE_COMPUTED_LOD) || + (I->va_lod_mode == BI_VA_LOD_MODE_COMPUTED_BIAS); case BI_OPCODE_CLPER_I32: case BI_OPCODE_CLPER_V6_I32: /* Fragment shaders require helpers to implement derivatives.