aco: implement 64-bit VGPR constant copies in handle_operands()

Graphics / Mesa 3D Graphics Library / Mesa - Rhys Perry [gmail.com] - 24 March 2020 11:28 EDT

64-bit VGPR constant copies can happen because of 64-bit constant copy propagation. Since this optimization is beneficial and more annoying to deal with in the optimizer, I've implemented 64-bit VGPR constant copies in handle_operands().

This also sets copy_operation::size correctly for 64-bit constant copies.

Cc: 20.0

43918c9a7fc aco: implement 64-bit VGPR constant copies in handle_operands()
src/amd/compiler/aco_ir.h | 30 ++++++++++++++++++++++++++++++
src/amd/compiler/aco_lower_to_hw_instr.cpp | 13 +++++++++----
2 files changed, 39 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share