projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a128d5
)
r600g: cayman umad assigns dst pointlessly
author
Dave Airlie
<airlied@redhat.com>
Tue, 18 Nov 2014 00:22:24 +0000
(10:22 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 18 Nov 2014 01:59:30 +0000
(11:59 +1000)
There is no need to assign dst here, just use the chan from j
Pointed out by glennk.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index ac26d77ec9188ff2302f7be8550827cc9d602925..4c6ae4545fffb162cb57a7d1a39dba45ef621bcb 100644
(file)
--- a/
src/gallium/drivers/r600/r600_shader.c
+++ b/
src/gallium/drivers/r600/r600_shader.c
@@
-7095,7
+7095,7
@@
static int tgsi_umad(struct r600_shader_ctx *ctx)
for (k = 0; k < inst->Instruction.NumSrcRegs; k++) {
r600_bytecode_src(&alu.src[k], &ctx->src[k], i);
}
-
tgsi_dst(ctx, &inst->Dst[0], j, &alu.dst)
;
+
alu.dst.chan = j
;
alu.dst.sel = ctx->temp_reg;
alu.dst.write = (j == i);
if (j == 3)