i965/vs: Add a new dst_reg constructor for file, number, type, and mask.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Oct 2011 04:45:12 +0000 (21:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 18 Dec 2011 20:39:00 +0000 (12:39 -0800)
This will be especially useful for loading texturing parameters, where I
need to (for example) reference m3.xz<D>.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.h

index eb90253543ed622e6e078f256f25cf2ca727c3d5..5bf802787bad95d0e4916c3b29ba26afba17e3d6 100644 (file)
@@ -210,6 +210,16 @@ public:
       this->reg = reg;
    }
 
+   dst_reg(register_file file, int reg, const glsl_type *type, int writemask)
+   {
+      init();
+
+      this->file = file;
+      this->reg = reg;
+      this->type = brw_type_for_base_type(type);
+      this->writemask = writemask;
+   }
+
    dst_reg(struct brw_reg reg)
    {
       init();