This is the vec4 analogous patch to i965/fs: Add users of emit_mul_dw

Signed-off-by: Ben Widawsky <b...@bwidawsk.net>

---
It would be good if someone else can take a look
---
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp 
b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index f6fb98d..5fcea5a 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1957,7 +1957,8 @@ vec4_visitor::visit(ir_dereference_array *ir)
       } else {
         index_reg = src_reg(this, glsl_type::int_type);
 
-        emit(MUL(dst_reg(index_reg), this->result, src_reg(array_stride)));
+         emit_mul_dw(dst_reg(index_reg), this->result, src_reg(array_stride),
+                     false, true);
       }
 
       if (src.reladdr) {
@@ -2331,7 +2332,7 @@ vec4_visitor::visit_atomic_counter_intrinsic(ir_call *ir)
       deref_array->array_index->accept(this);
 
       src_reg tmp(this, glsl_type::uint_type);
-      emit(MUL(dst_reg(tmp), this->result, ATOMIC_COUNTER_SIZE));
+      emit_mul_dw(dst_reg(tmp), this->result, ATOMIC_COUNTER_SIZE, false, 
true);
       emit(ADD(dst_reg(offset), tmp, location->data.atomic.offset));
    } else {
       offset = location->data.atomic.offset;
-- 
2.2.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to