Fix SPIR-V FS output locations with MRTs
authorMartin Krošlák <kroslakma@gmail.com>
Fri, 10 Jan 2020 05:55:05 +0100
changeset 1228 22aa1f7914d3
parent 1227 b7a3f02389b6
child 1229 3ecd29a50d9d
Fix SPIR-V FS output locations with MRTs
profiles/mojoshader_profile_spirv.c
--- a/profiles/mojoshader_profile_spirv.c	Thu Jan 09 23:22:02 2020 -0500
+++ b/profiles/mojoshader_profile_spirv.c	Fri Jan 10 05:55:05 2020 +0100
@@ -2208,7 +2208,7 @@
         switch (regtype)
         {
             case REG_TYPE_COLOROUT:
-                spv_link_ps_attributes(ctx, r->spirv.iddecl, regtype, usage, index);
+                spv_link_ps_attributes(ctx, r->spirv.iddecl, regtype, usage, regnum);
                 push_output(ctx, &ctx->mainline_intro);
                 tid = spv_get_type(ctx, STI_PTR_VEC4_O);
                 spv_emit(ctx, 4, SpvOpVariable, tid, r->spirv.iddecl, SpvStorageClassOutput);