[Mesa-dev] [PATCH] anv/pipeline: Lower indirect outputs when EmitNoIndirectOutput is set

Jason Ekstrand jason at jlekstrand.net
Tue Sep 6 03:10:48 UTC 2016


Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reported-by: Timothy Arceri <timothy.arceri at collabora.com>
---
 src/intel/vulkan/anv_pipeline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 35acc4a..9780201 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -186,6 +186,8 @@ anv_shader_compile_to_nir(struct anv_device *device,
    nir_variable_mode indirect_mask = 0;
    if (compiler->glsl_compiler_options[stage].EmitNoIndirectInput)
       indirect_mask |= nir_var_shader_in;
+   if (compiler->glsl_compiler_options[stage].EmitNoIndirectOutput)
+      indirect_mask |= nir_var_shader_out;
    if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp)
       indirect_mask |= nir_var_local;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list