From: Gert Wollny Date: Wed, 6 May 2020 22:09:02 +0000 (+0200) Subject: r600/sfn: Add FS output sample_mask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15d6d354207adea208377edbafe9ca8180a9e406;p=mesa.git r600/sfn: Add FS output sample_mask Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- 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; }