diff options
author | Ilia Mirkin <[email protected]> | 2017-02-09 18:38:17 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-05 15:29:34 +0200 |
commit | 3650d7455fd467e1674888ecf4573756a82c9033 (patch) | |
tree | c59ebb8c2f96e1eb16836a910113c65992e6926e /src/gallium/include/pipe | |
parent | d3e6f6d7f70f8d72e6916d1898f28a15c77d48db (diff) |
tgsi: add BALLOT/READ_* opcodes
v2 (Nicolai):
- BALLOT isn't per-channel
- expand the documentation (also for VOTE_*)
v3:
- only BALLOT returns a 64-bit lanemask (Boyan)
- relax the requirement on READ_INVOC: the invocation number to read
from must be uniform within a sub-group. This matches the
GL_ARB_shader_ballot spect (and the v_readlane instruction of AMD
GCN)
v4:
- hopefully really fix the doc of VOTE_* returns (Ilia)
Signed-off-by: Ilia Mirkin <[email protected]>
Signed-off-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Marek Olšák <[email protected]> (v2)
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 3d99a5f88bc..7e8b3caf23b 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -404,7 +404,7 @@ struct tgsi_property_data { #define TGSI_OPCODE_BRK 73 #define TGSI_OPCODE_IF 74 #define TGSI_OPCODE_UIF 75 - /* gap */ +#define TGSI_OPCODE_READ_INVOC 76 #define TGSI_OPCODE_ELSE 77 #define TGSI_OPCODE_ENDIF 78 @@ -418,7 +418,7 @@ struct tgsi_property_data { #define TGSI_OPCODE_NOT 85 #define TGSI_OPCODE_TRUNC 86 #define TGSI_OPCODE_SHL 87 - /* gap */ +#define TGSI_OPCODE_BALLOT 88 #define TGSI_OPCODE_AND 89 #define TGSI_OPCODE_OR 90 #define TGSI_OPCODE_MOD 91 @@ -436,7 +436,7 @@ struct tgsi_property_data { #define TGSI_OPCODE_TXQ_LZ 103 /* TXQ for mipmap level 0 */ #define TGSI_OPCODE_TXQS 104 #define TGSI_OPCODE_RESQ 105 - /* gap */ +#define TGSI_OPCODE_READ_FIRST 106 #define TGSI_OPCODE_NOP 107 #define TGSI_OPCODE_FSEQ 108 |