aco: always set scratch_offset in startpgm
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 30 Oct 2019 17:24:39 +0000 (18:24 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Wed, 30 Oct 2019 19:48:33 +0000 (19:48 +0000)
commitc79972b6047b1d49ec0c0652a2d7d716b1c2b457
treeb8f7b6aa8cbb7ec73a00ea998dde873128651f10
parentb0de16b7de051be460fe1f70c7ede42f1fdb005b
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 <pendingchaos02@gmail.com>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_ir.h