mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
r600g: DP4 also supports writemasking
This commit is contained in:
parent
d92e97d884
commit
9d967fc91e
1 changed files with 6 additions and 8 deletions
|
|
@ -1649,15 +1649,13 @@ static int tgsi_dp(struct r600_shader_ctx *ctx)
|
|||
alu.src[j] = r600_src[j];
|
||||
alu.src[j].chan = tgsi_chan(&inst->Src[j], i);
|
||||
}
|
||||
if(inst->Dst[0].Register.WriteMask & (1 << i)) {
|
||||
r = tgsi_dst(ctx, &inst->Dst[0], i, &alu.dst);
|
||||
if (r)
|
||||
return r;
|
||||
} else {
|
||||
alu.dst.sel = ctx->temp_reg;
|
||||
}
|
||||
|
||||
r = tgsi_dst(ctx, &inst->Dst[0], i, &alu.dst);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
alu.dst.chan = i;
|
||||
alu.dst.write = 1;
|
||||
alu.dst.write = (inst->Dst[0].Register.WriteMask >> i) & 1;
|
||||
/* handle some special cases */
|
||||
switch (ctx->inst_info->tgsi_opcode) {
|
||||
case TGSI_OPCODE_DP2:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue