Skip to content

Commit

Permalink
assert muxsum only happens if no dot was done
Browse files Browse the repository at this point in the history
  • Loading branch information
JayFoxRox committed Feb 4, 2019
1 parent 721a5b7 commit a1a645d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/xbox/nv2a/nv2a_psh.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ static void add_stage_code(struct PixelShader *ps,
}

if (output.muxsum != PS_REGISTER_DISCARD) {

assert(output.ab_op != PS_COMBINEROUTPUT_AB_DOT_PRODUCT);
assert(output.cd_op != PS_COMBINEROUTPUT_CD_DOT_PRODUCT);

if (output.muxsum_op == PS_COMBINEROUTPUT_AB_CD_SUM) {
qstring_append_fmt(ps->code, "sum_in.%s = (ab_in.%s + cd_in.%s);\n",
write_mask, write_mask, write_mask);
Expand Down

0 comments on commit a1a645d

Please sign in to comment.