From: Matt Turner Date: Mon, 16 Nov 2015 17:29:01 +0000 (-0800) Subject: i965: Add brw_imm_uv(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b15281295791278b3cd63baccb528742de1d21f;p=mesa.git i965: Add brw_imm_uv(). --- 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)