aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_eu_defines.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-08-31 21:45:30 -0700
committerJason Ekstrand <[email protected]>2018-03-07 12:13:47 -0800
commitb0858c1cc6711168087b6774f3dc02a73b14fed2 (patch)
tree8f466f2eddd6735e1f3062d89c2b04c11cc7b44d /src/intel/compiler/brw_eu_defines.h
parent57bff0a546c8ebe9a09335200719cb9e13d6aea9 (diff)
intel/fs: Add a couple of simple helper opcodes
Acked-by: Lionel Landwerlin <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu_defines.h')
-rw-r--r--src/intel/compiler/brw_eu_defines.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu_defines.h b/src/intel/compiler/brw_eu_defines.h
index 3449c73d771..3c4c538ac17 100644
--- a/src/intel/compiler/brw_eu_defines.h
+++ b/src/intel/compiler/brw_eu_defines.h
@@ -460,6 +460,19 @@ enum opcode {
*/
SHADER_OPCODE_SHUFFLE,
+ /* Select between src0 and src1 based on channel enables.
+ *
+ * This instruction copies src0 into the enabled channels of the
+ * destination and copies src1 into the disabled channels.
+ */
+ SHADER_OPCODE_SEL_EXEC,
+
+ /* Take every Nth element in src0 and broadcast it to the group of N
+ * channels in which it lives in the destination. The offset within the
+ * cluster is given by src1 and the cluster size is given by src2.
+ */
+ SHADER_OPCODE_CLUSTER_BROADCAST,
+
SHADER_OPCODE_GET_BUFFER_SIZE,
VEC4_OPCODE_MOV_BYTES,