mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
r600/sfn: Fix dual source blend lowered to FRAG_DATA
This fixes the Unigine benchmarks. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8800>
This commit is contained in:
parent
576da40a73
commit
d81439463a
1 changed files with 2 additions and 1 deletions
|
|
@ -943,7 +943,8 @@ bool FragmentShaderFromNir::emit_export_pixel(const nir_variable *out_var, nir_i
|
|||
out_var->data.location <= FRAG_RESULT_DATA7)) {
|
||||
for (int k = 0 ; k < outputs; ++k) {
|
||||
|
||||
unsigned location = (m_dual_source_blend ? out_var->data.index : out_var->data.driver_location) + k - m_depth_exports;
|
||||
unsigned location = (m_dual_source_blend && (out_var->data.location == FRAG_RESULT_COLOR)
|
||||
? out_var->data.index : out_var->data.driver_location) + k - m_depth_exports;
|
||||
|
||||
sfn_log << SfnLog::io << "Pixel output " << out_var->name << " at loc:" << location << "\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue