aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/compiler/aco_ir.h
diff options
context:
space:
mode:
authorDaniel Schürmann <[email protected]>2019-10-30 18:24:39 +0100
committerDaniel Schürmann <[email protected]>2019-10-30 19:48:33 +0000
commitc79972b6047b1d49ec0c0652a2d7d716b1c2b457 (patch)
treeb8f7b6aa8cbb7ec73a00ea998dde873128651f10 /src/amd/compiler/aco_ir.h
parentb0de16b7de051be460fe1f70c7ede42f1fdb005b (diff)
aco: always set scratch_offset in startpgm
This patch also moves private_segment_buffer and scratch_offset to Program to easily access it. Reviewed-by: Rhys Perry <[email protected]>
Diffstat (limited to 'src/amd/compiler/aco_ir.h')
-rw-r--r--src/amd/compiler/aco_ir.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h
index 29aefef26cf..5a16afdca36 100644
--- a/src/amd/compiler/aco_ir.h
+++ b/src/amd/compiler/aco_ir.h
@@ -1076,15 +1076,16 @@ public:
bool wb_smem_l1_on_end = false;
std::vector<uint8_t> constant_data;
+ Temp private_segment_buffer;
+ Temp scratch_offset;
uint16_t lds_alloc_granule;
uint32_t lds_limit; /* in bytes */
-
uint16_t vgpr_limit;
-
+ uint16_t sgpr_limit;
uint16_t physical_sgprs;
uint16_t sgpr_alloc_granule; /* minus one. must be power of two */
- uint16_t sgpr_limit;
+
bool needs_vcc = false;
bool needs_xnack_mask = false;
bool needs_flat_scr = false;