mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
ir3: Fixup dual-source blending slot
The hardware expects that where MRT0 and MRT1 would normally go are the dual sources for MRT0, whereas GLSL has an extra "index" parameter that indicates which source it is. Remap it when handling FS outputs. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5039>
This commit is contained in:
parent
0e0580550e
commit
2a9d12d513
1 changed files with 1 additions and 0 deletions
|
|
@ -3112,6 +3112,7 @@ setup_output(struct ir3_context *ctx, nir_variable *out)
|
||||||
so->writes_smask = true;
|
so->writes_smask = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
slot += out->data.index; /* For dual-src blend */
|
||||||
if (slot >= FRAG_RESULT_DATA0)
|
if (slot >= FRAG_RESULT_DATA0)
|
||||||
break;
|
break;
|
||||||
ir3_context_error(ctx, "unknown FS output name: %s\n",
|
ir3_context_error(ctx, "unknown FS output name: %s\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue