From c79972b6047b1d49ec0c0652a2d7d716b1c2b457 Mon Sep 17 00:00:00 2001 From: Daniel Schürmann Date: Wed, 30 Oct 2019 18:24:39 +0100 Subject: 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 --- src/amd/compiler/aco_ir.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/amd/compiler/aco_ir.h') 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 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; -- cgit v1.2.3