From 4b15281295791278b3cd63baccb528742de1d21f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 16 Nov 2015 09:29:01 -0800 Subject: i965: Add brw_imm_uv(). --- src/mesa/drivers/dri/i965/brw_reg.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- cgit v1.2.3