anv/pipeline: Lower indirect outputs when EmitNoIndirectOutput is set
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Sep 2016 03:09:47 +0000 (20:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 6 Sep 2016 15:27:23 +0000 (08:27 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reported-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_pipeline.c

index 35acc4aaef9c22d3fef44aa8772b580aa4c0c0d8..9780201ca3342116a5b7ee952104c0fd3555664f 100644 (file)
@@ -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;