projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3be0d6d
)
i965/vec4: Compare full register offsets in opt_register_coalesce nop move check.
author
Francisco Jerez
<currojerez@riseup.net>
Fri, 2 Sep 2016 05:04:02 +0000
(22:04 -0700)
committer
Francisco Jerez
<currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:58 +0000
(14:50 -0700)
In preparation for adding support for sub-GRF offsets to the VEC4 IR.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4.cpp
b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index f97de18598515323617b18c4807039e8e7754fd9..d9dbc4c8543b9da31a606429d1a90a3adf237a41 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_vec4.cpp
@@
-1098,7
+1098,7
@@
vec4_visitor::opt_register_coalesce()
/* Remove no-op MOVs */
if (inst->dst.file == inst->src[0].file &&
inst->dst.nr == inst->src[0].nr &&
- inst->dst.offset
/ REG_SIZE == inst->src[0].offset / REG_SIZE
) {
+ inst->dst.offset
== inst->src[0].offset
) {
bool is_nop_mov = true;
for (unsigned c = 0; c < 4; c++) {