summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4.h
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2015-03-20 14:16:09 +0200
committerFrancisco Jerez <[email protected]>2015-05-04 17:44:17 +0300
commit046abc998c6951ea8a4aee0a2c1b832f6c877b73 (patch)
tree2ac6d41c8c3f788c9180e117170e7bdd9b4da342 /src/mesa/drivers/dri/i965/brw_vec4.h
parent3da9f708d4f1375d674fae4d6c6eb06e4c8d9613 (diff)
i965: Define helper function to copy an arbitrary live component from some register.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index 3f56c5cf03f..628c6313cc9 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -299,6 +299,9 @@ public:
void emit_lrp(const dst_reg &dst,
const src_reg &x, const src_reg &y, const src_reg &a);
+ /** Copy any live channel from \p src to the first channel of \p dst. */
+ void emit_uniformize(const dst_reg &dst, const src_reg &src);
+
void emit_block_move(dst_reg *dst, src_reg *src,
const struct glsl_type *type, brw_predicate predicate);