summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-11-16 09:29:01 -0800
committerMatt Turner <mattst88@gmail.com>2015-11-20 17:39:33 -0800
commit4b15281295791278b3cd63baccb528742de1d21f (patch)
tree1655cffcc9c69c9802463aa013941818e8d0e7d6 /src
parentce11d4f3695506bd00b319b6ebbfcb9168eb3b84 (diff)
i965: Add brw_imm_uv().
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_reg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h
index 15de93aa8ad..fa912c96c36 100644
--- a/src/mesa/drivers/dri/i965/brw_reg.h
+++ b/src/mesa/drivers/dri/i965/brw_reg.h
@@ -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)