diff options
author | Jason Ekstrand <[email protected]> | 2018-11-14 17:13:57 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-02-01 16:11:00 -0600 |
commit | 1c25bf4373d68777c3561fdd1a30766698437109 (patch) | |
tree | fe276af329b8e57cdddcab2d591f040a5936114b /src/intel/compiler/brw_eu_defines.h | |
parent | b4f0d062cd12b4f675bac900ac41d1085a79239a (diff) |
intel/fs: Implement load/store_global with A64 untyped messages
eviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu_defines.h')
-rw-r--r-- | src/intel/compiler/brw_eu_defines.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu_defines.h b/src/intel/compiler/brw_eu_defines.h index d3dfd6dc7e8..6c2a2f8ef7c 100644 --- a/src/intel/compiler/brw_eu_defines.h +++ b/src/intel/compiler/brw_eu_defines.h @@ -412,6 +412,19 @@ enum opcode { SHADER_OPCODE_UNTYPED_SURFACE_WRITE, SHADER_OPCODE_UNTYPED_SURFACE_WRITE_LOGICAL, + /** + * Untyped A64 surface access opcodes. + * + * Source 0: 64-bit address + * Source 1: Operational source + * Source 2: [required] Opcode-specific control immediate, same as source 2 + * of the matching non-LOGICAL opcode. + */ + SHADER_OPCODE_A64_UNTYPED_READ_LOGICAL, + SHADER_OPCODE_A64_UNTYPED_WRITE_LOGICAL, + SHADER_OPCODE_A64_BYTE_SCATTERED_READ_LOGICAL, + SHADER_OPCODE_A64_BYTE_SCATTERED_WRITE_LOGICAL, + SHADER_OPCODE_TYPED_ATOMIC, SHADER_OPCODE_TYPED_ATOMIC_LOGICAL, SHADER_OPCODE_TYPED_SURFACE_READ, @@ -1170,12 +1183,22 @@ enum brw_message_target { #define HSW_DATAPORT_DC_PORT1_ATOMIC_COUNTER_OP 11 #define HSW_DATAPORT_DC_PORT1_ATOMIC_COUNTER_OP_SIMD4X2 12 #define HSW_DATAPORT_DC_PORT1_TYPED_SURFACE_WRITE 13 +#define GEN9_DATAPORT_DC_PORT1_A64_SCATTERED_READ 0x10 +#define GEN8_DATAPORT_DC_PORT1_A64_UNTYPED_SURFACE_READ 0x11 +#define GEN8_DATAPORT_DC_PORT1_A64_UNTYPED_SURFACE_WRITE 0x19 +#define GEN8_DATAPORT_DC_PORT1_A64_SCATTERED_WRITE 0x1a #define GEN9_DATAPORT_DC_PORT1_UNTYPED_ATOMIC_FLOAT_OP 0x1b /* GEN9 */ #define GEN9_DATAPORT_RC_RENDER_TARGET_WRITE 12 #define GEN9_DATAPORT_RC_RENDER_TARGET_READ 13 +/* A64 scattered message subtype */ +#define GEN8_A64_SCATTERED_SUBTYPE_BYTE 0 +#define GEN8_A64_SCATTERED_SUBTYPE_DWORD 1 +#define GEN8_A64_SCATTERED_SUBTYPE_QWORD 2 +#define GEN8_A64_SCATTERED_SUBTYPE_HWORD 3 + /* Dataport special binding table indices: */ #define BRW_BTI_STATELESS 255 #define GEN7_BTI_SLM 254 |