radv: keep a pointer to a NIR shader into radv_shader_context
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Aug 2019 15:08:29 +0000 (17:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 30 Aug 2019 07:33:30 +0000 (09:33 +0200)
commit6b96c94b5a8ef29a9cb710f59f4b5b7a5aeb47b1
tree9f1a7461a00829427986521ab381c981b3b34f8c
parent7b1655ccf3471a7c961612197b7227fd0e4abb35
radv: keep a pointer to a NIR shader into radv_shader_context

This avoids multiple copies for nothing and it's more elegant.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_nir_to_llvm.c