ac/nir: pass the nir variable through tcs loading.
authorDave Airlie <airlied@redhat.com>
Wed, 14 Mar 2018 00:19:45 +0000 (10:19 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Mar 2018 01:18:54 +0000 (11:18 +1000)
commit4f0c89d66c570e82d832e2e49227517302e271a2
tree8d3a3547b46c9eebf193f943428e317b2ca63a87
parentf9de2d409bf4f068a99d358d592d96ab4803f7fb
ac/nir: pass the nir variable through tcs loading.

I was going to have to add another parameter to this monster,
so we should just pass the nir_variable in, I can't find any
reason this would be a bad idea.

This needed for the next fix.

Fixes: 94f9591995 (radv/ac: add support for TCS/TES inputs/outputs.)
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_shader_abi.h
src/amd/vulkan/radv_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader.c