projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce11d4f
)
i965: Add brw_imm_uv().
author
Matt Turner
<mattst88@gmail.com>
Mon, 16 Nov 2015 17:29:01 +0000
(09:29 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Sat, 21 Nov 2015 01:39:33 +0000
(17:39 -0800)
src/mesa/drivers/dri/i965/brw_reg.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_reg.h
b/src/mesa/drivers/dri/i965/brw_reg.h
index
15de93a
..
fa912c9
100644
(file)
--- 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)