i965: Add brw_imm_uv().
authorMatt Turner <mattst88@gmail.com>
Mon, 16 Nov 2015 17:29:01 +0000 (09:29 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 21 Nov 2015 01:39:33 +0000 (17:39 -0800)
src/mesa/drivers/dri/i965/brw_reg.h

index 15de93aa8add3b1535b00c6b438932aef0d0d8f4..fa912c96c36f18b23b4489ff3b1d7ffd4443fa2a 100644 (file)
@@ -622,6 +622,15 @@ brw_imm_v(unsigned v)
    return imm;
 }
 
+/** Construct vector of eight unsigned half-byte values */
+static inline struct brw_reg
+brw_imm_uv(unsigned uv)
+{
+   struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_UV);
+   imm.ud = uv;
+   return imm;
+}
+
 /** Construct vector of four 8-bit float values */
 static inline struct brw_reg
 brw_imm_vf(unsigned v)