radv: start allocating user sgprs
authorDave Airlie <airlied@redhat.com>
Mon, 17 Apr 2017 20:18:01 +0000 (06:18 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Apr 2017 23:00:43 +0000 (09:00 +1000)
commitd0991b135b90b5ce90da51b6d4db7302ddd65a24
tree109091bf3f736f579ebadafed955afa8d579cb4f
parent4087eaecd081856ace5c4a161a6dd3ea69194650
radv: start allocating user sgprs

This adds an initial implementation to allocate the user
sgprs and make sure we don't run out if we try to bind
a bunch of descriptor sets.

This can be enhanced further in the future if we add
support for inlining push constants.

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