From: Kenneth Graunke Date: Fri, 28 Oct 2011 04:45:12 +0000 (-0700) Subject: i965/vs: Add a new dst_reg constructor for file, number, type, and mask. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdd76ebef126281d837f3a817a9f19fca7799a88;p=mesa.git i965/vs: Add a new dst_reg constructor for file, number, type, and mask. This will be especially useful for loading texturing parameters, where I need to (for example) reference m3.xz. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index eb90253543e..5bf802787ba 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -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();