diff options
author | Roland Scheidegger <[email protected]> | 2017-09-28 03:45:04 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2017-09-30 02:58:09 +0200 |
commit | 740a1618c34c095f85d4929e11ef107d560f7450 (patch) | |
tree | eb956477a8c8d7dbc3a2d04282620f10e17ef703 /src/gallium/include | |
parent | d5e7ce28b5f6e0a7e4857d1e56143c00eba0c265 (diff) |
gallium: add new LOD opcode
The operation performed is all the same as LODQ, but with the usual
differences between dx10 and GL texture opcodes, that is separate resource
and sampler indices (plus result swizzling, and setting z/w channels
to zero).
Reviewed-by: Jose Fonseca <[email protected]>
Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index a5adedd9875..97deef73830 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -607,7 +607,9 @@ struct tgsi_property_data { #define TGSI_OPCODE_DDIV 248 -#define TGSI_OPCODE_LAST 249 +#define TGSI_OPCODE_LOD 249 + +#define TGSI_OPCODE_LAST 250 /** * Opcode is the operation code to execute. A given operation defines the |