mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
pan/midgard: Add an enum to describe the render targets
We are about to add a special ZS render target, let's add a enum so we can easily know which render target we're dealing with. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
This commit is contained in:
parent
e62c3cf350
commit
25946be4c4
1 changed files with 9 additions and 1 deletions
|
|
@ -222,6 +222,14 @@ typedef struct midgard_bundle {
|
|||
bool last_writeout;
|
||||
} midgard_bundle;
|
||||
|
||||
enum midgard_rt_id {
|
||||
MIDGARD_COLOR_RT0,
|
||||
MIDGARD_COLOR_RT1,
|
||||
MIDGARD_COLOR_RT2,
|
||||
MIDGARD_COLOR_RT3,
|
||||
MIDGARD_NUM_RTS,
|
||||
};
|
||||
|
||||
typedef struct compiler_context {
|
||||
nir_shader *nir;
|
||||
gl_shader_stage stage;
|
||||
|
|
@ -307,7 +315,7 @@ typedef struct compiler_context {
|
|||
uint32_t quirks;
|
||||
|
||||
/* Writeout instructions for each render target */
|
||||
midgard_instruction *writeout_branch[4];
|
||||
midgard_instruction *writeout_branch[MIDGARD_NUM_RTS];
|
||||
} compiler_context;
|
||||
|
||||
/* Per-block live_in/live_out */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue