diff options
author | Brian Paul <[email protected]> | 2016-03-31 14:17:26 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-02 08:05:20 -0600 |
commit | ef10b5427a1ac6e9899116d0e9f0eaa2d87e7957 (patch) | |
tree | 275df37020a970f8c756ba9e15da3aa8a70f5fb9 /src/gallium/auxiliary | |
parent | 070e5a740545a93a75fa5c79a79b50f472cb8e16 (diff) |
tgsi: add simple tgsi_is_msaa_target() helper
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.h b/src/gallium/auxiliary/tgsi/tgsi_util.h index 3a049ee5667..ca07bfdaf08 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.h +++ b/src/gallium/auxiliary/tgsi/tgsi_util.h @@ -88,6 +88,14 @@ tgsi_util_get_shadow_ref_src_index(unsigned tgsi_tex); boolean tgsi_is_shadow_target(unsigned target); + +static inline boolean +tgsi_is_msaa_target(unsigned target) +{ + return (target == TGSI_TEXTURE_2D_MSAA || + target == TGSI_TEXTURE_2D_ARRAY_MSAA); +} + #if defined __cplusplus } #endif |