[Mesa-dev] [PATCH] i965/vec4: copy abs/negate modifiers on src/dst_reg conversion constructors
Alejandro PiƱeiro
apinheiro at igalia.com
Wed Sep 30 10:32:09 PDT 2015
---
src/mesa/drivers/dri/i965/brw_vec4.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index c61b385..121e698 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -139,6 +139,8 @@ src_reg::src_reg(const dst_reg ®)
this->reladdr = reg.reladdr;
this->fixed_hw_reg = reg.fixed_hw_reg;
this->swizzle = brw_swizzle_for_mask(reg.writemask);
+ this->negate = reg.negate;
+ this->abs = reg.abs;
}
void
@@ -204,6 +206,8 @@ dst_reg::dst_reg(const src_reg ®)
this->writemask = brw_mask_for_swizzle(reg.swizzle);
this->reladdr = reg.reladdr;
this->fixed_hw_reg = reg.fixed_hw_reg;
+ this->abs = reg.abs;
+ this->negate = reg.negate;
}
bool
--
2.1.4
More information about the mesa-dev
mailing list