diff options
author | Rob Clark <[email protected]> | 2017-05-21 12:40:30 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-05-23 12:26:35 -0400 |
commit | caa64b24ce4ca32addfae2bcd93b59b1e5225d82 (patch) | |
tree | 63ac793b4ff0469e8a585adf44dca5f0821e5f88 /src/gallium/drivers/freedreno/ir3/ir3.h | |
parent | 232fc995441cc0d69e72f21bba986da0abd8bf72 (diff) |
freedreno/ir3: lower arrays to regs
Instead of using load/store_var intrinsics, which can have complex
derefs in the case of multi-dimensional arrays, lower these to regs
and handle the direct/indirect loads in get_src() and stores in
put_dst().
This should let us switch to using nir by default.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3.h')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3.h b/src/gallium/drivers/freedreno/ir3/ir3.h index 85deeb2b0d5..de7a2a88733 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3.h +++ b/src/gallium/drivers/freedreno/ir3/ir3.h @@ -400,14 +400,14 @@ struct ir3 { struct list_head array_list; }; -typedef struct nir_variable nir_variable; +typedef struct nir_register nir_register; struct ir3_array { struct list_head node; unsigned length; unsigned id; - nir_variable *var; + nir_register *r; /* We track the last write and last access (read or write) to * setup dependencies on instructions that read or write the |