From 15d6d354207adea208377edbafe9ca8180a9e406 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 7 May 2020 00:09:02 +0200 Subject: r600/sfn: Add FS output sample_mask Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp b/src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp index a443ea3e86a..43e470532ba 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp @@ -285,7 +285,8 @@ bool FragmentShaderFromNir::do_emit_store_deref(const nir_variable *out_var, nir if ((out_var->data.location >= FRAG_RESULT_DATA0 && out_var->data.location <= FRAG_RESULT_DATA7) || out_var->data.location == FRAG_RESULT_DEPTH || - out_var->data.location == FRAG_RESULT_STENCIL) + out_var->data.location == FRAG_RESULT_STENCIL || + out_var->data.location == FRAG_RESULT_SAMPLE_MASK) return emit_export_pixel(out_var, instr, false); sfn_log << SfnLog::err << "r600-NIR: Unimplemented store_deref for " << @@ -326,7 +327,8 @@ bool FragmentShaderFromNir::do_process_outputs(nir_variable *output) return true; } if (output->data.location == FRAG_RESULT_DEPTH || - output->data.location == FRAG_RESULT_STENCIL) { + output->data.location == FRAG_RESULT_STENCIL || + output->data.location == FRAG_RESULT_SAMPLE_MASK) { io.write_mask = 15; return true; } -- cgit v1.2.3