diff options
author | Dave Airlie <[email protected]> | 2014-02-11 13:26:08 +1000 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-04-07 01:06:18 -0400 |
commit | be5276ae7d24563301ae627b994f612069c32461 (patch) | |
tree | 5d54a4ffb578414643077a88c2a950b578eb9a75 /src/gallium/include | |
parent | 5d0b3ec4ae4e468ee6d69bb6f036c06aae759dcc (diff) |
gallium: add support for LODQ opcodes.
This opcode provide support for GL_ARB_texture_query_lod,
Signed-off-by: Dave Airlie <[email protected]>
[imirkin: rebase, docs update]
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 3 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 8c092c2e619..30a65ee5136 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -552,7 +552,8 @@ enum pipe_cap { PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS = 90, PIPE_CAP_TEXTURE_GATHER_SM5 = 91, PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT = 92, - PIPE_CAP_FAKE_SW_MSAA = 93 + PIPE_CAP_FAKE_SW_MSAA = 93, + PIPE_CAP_TEXTURE_QUERY_LOD = 94, }; #define PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 (1 << 0) diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 8fa6a0afaeb..a2e649ec439 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -455,7 +455,9 @@ struct tgsi_property_data { #define TGSI_OPCODE_TG4 182 -#define TGSI_OPCODE_LAST 183 +#define TGSI_OPCODE_LODQ 183 + +#define TGSI_OPCODE_LAST 184 #define TGSI_SAT_NONE 0 /* do not saturate */ #define TGSI_SAT_ZERO_ONE 1 /* clamp to [0,1] */ |