From 3612880ea3e476922ea45b0cbb607e615a2f5b82 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 8 Nov 2021 13:59:39 -0500 Subject: [PATCH] pan/bi: Add bifrost_texture_operation_mode enum Differentiates single/dual texturing. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index d9c567fa59e..b8c5fb4c6e6 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -409,6 +409,14 @@ static const struct bifrost_reg_ctrl_23 bifrost_reg_ctrl_lut[32] = { /* Texture operator descriptors in various states. Usually packed in the * compiler and stored as a constant */ +enum bifrost_texture_operation_mode { + /* Dual texturing */ + BIFROST_TEXTURE_OPERATION_DUAL = 1, + + /* Single texturing */ + BIFROST_TEXTURE_OPERATION_SINGLE = 3, +}; + enum bifrost_index { /* Both texture/sampler index immediate */ BIFROST_INDEX_IMMEDIATE_SHARED = 0,