Skip to content

Commit

Permalink
Fix SPIR-V FS output locations with MRTs
Browse files Browse the repository at this point in the history
  • Loading branch information
krolli committed Jan 10, 2020
1 parent f4070d6 commit 1450aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/mojoshader_profile_spirv.c
Expand Up @@ -2208,7 +2208,7 @@ void emit_SPIRV_attribute(Context *ctx, RegisterType regtype, int regnum,
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);
Expand Down

0 comments on commit 1450aee

Please sign in to comment.