agx: Add branch target to IR

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11023>
This commit is contained in:
Alyssa Rosenzweig
2021-05-26 19:51:19 -04:00
committed by Alyssa Rosenzweig
parent ad4dfb3321
commit 8454d08aa3
2 changed files with 5 additions and 0 deletions

View File

@@ -240,6 +240,9 @@ enum agx_dim {
AGX_DIM_TEX_CUBE_ARRAY = 7
};
/* Forward declare for branch target */
struct agx_block;
typedef struct {
/* Must be first */
struct list_head link;
@@ -263,6 +266,7 @@ typedef struct {
enum agx_format format;
enum agx_round round;
enum agx_lod_mode lod_mode;
struct agx_block *target;
};
/* Invert icond/fcond */

View File

@@ -88,6 +88,7 @@ ICOND = immediate("icond")
FCOND = immediate("fcond")
NEST = immediate("nest")
INVERT_COND = immediate("invert_cond")
TARGET = immediate("target", "agx_block *")
FUNOP = lambda x: (x << 28)
FUNOP_MASK = FUNOP((1 << 14) - 1)