radv: move userdata sgpr ownership to compiler side.
authorDave Airlie <airlied@redhat.com>
Mon, 28 Nov 2016 01:11:34 +0000 (01:11 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Dec 2016 23:25:49 +0000 (23:25 +0000)
commitae61ddabe8cfa1e2c8c55c478a7ea70563f64b63
tree1fb306b5ebe599bdecf7668dc722c8401741aa23
parent221ab77956d20a999da34c8bd2ace4bc06f4ee42
radv: move userdata sgpr ownership to compiler side.

This isn't fully what we want yet, but is a good step on the way.

This allows the compiler to create the information structures
for the state setting side, however the state setting still expects
things to be pretty much in 2 sgpr wide register sets, and can't
handle the indirect setting yet.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/vulkan/radv_cmd_buffer.c