diff options
author | Timothy Arceri <[email protected]> | 2018-10-23 21:56:31 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-10-24 08:21:29 +1100 |
commit | 0ff1ccca25232bdaddc6c8b56fba718768be1f95 (patch) | |
tree | e5afe52ce37858415b5f8f4d80854fa7c47168c7 /src/amd/vulkan/radv_pipeline.c | |
parent | c769ed10decaf9b0f09c570c81b7360cf4e6f507 (diff) |
radv: call nir_link_xfb_varyings()
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 396b44d25a1..c21ca1743a4 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1792,6 +1792,10 @@ radv_link_shaders(struct radv_pipeline *pipeline, nir_shader **shaders) unsigned first = ordered_shaders[shader_count - 1]->info.stage; unsigned last = ordered_shaders[0]->info.stage; + if (ordered_shaders[0]->info.stage == MESA_SHADER_FRAGMENT && + ordered_shaders[1]->info.has_transform_feedback_varyings) + nir_link_xfb_varyings(ordered_shaders[1], ordered_shaders[0]); + for (int i = 0; i < shader_count; ++i) { nir_variable_mode mask = 0; |