i965: Add brw_imm_uv().

This commit is contained in:
Matt Turner 2015-11-16 09:29:01 -08:00
parent ce11d4f369
commit 4b15281295

View 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)