diff options
author | Gert Wollny <[email protected]> | 2020-05-07 00:09:02 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-19 07:52:13 +0000 |
commit | 15d6d354207adea208377edbafe9ca8180a9e406 (patch) | |
tree | ae08e1ac7c96a1195a484fe0f27cbceae25996e3 /src/gallium/drivers/r600 | |
parent | 91a618eae9f0f126367b14dec8ebe3c80b7cf825 (diff) |
r600/sfn: Add FS output sample_mask
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |