ac/nir: consolidate setting userdata location
authorDave Airlie <airlied@redhat.com>
Mon, 5 Jun 2017 06:51:07 +0000 (07:51 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Jun 2017 04:59:57 +0000 (05:59 +0100)
commitb19cafd4417f06026181514f8546314651bf23a9
treed5db8b56552fcdf263ea183e17551081035bce3c
parentd0cec1fce1697f9c9c99eb1e3fa8d3fa1fd86b21
ac/nir: consolidate setting userdata location

Just pass a pointer and increment inside the function,
makes the code less error prone.

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