radeonsi/compute: Use relocs for scratch pointer rather than user sgprs v2
authorTom Stellard <thomas.stellard@amd.com>
Wed, 10 Dec 2014 01:05:44 +0000 (20:05 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 20 Jan 2015 14:55:44 +0000 (09:55 -0500)
commit73bc0fdb6f65ddb481cf525bf354e1a16bea4d75
treee2fcba5e34fba1389fd181e834d212839ad49828
parentdfdaf3eb7edac939f5d1a32db2968944852b28fa
radeonsi/compute: Use relocs for scratch pointer rather than user sgprs v2

Instead of passing a pointer to the scratch buffer via user sgprs, we
now patch the shader with the buffer address using reloc information
from the LLVM generated ELF.

v2:
  - Make sure not to break older LLVM.
src/gallium/drivers/radeonsi/si_compute.c