From ef10b5427a1ac6e9899116d0e9f0eaa2d87e7957 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 31 Mar 2016 14:17:26 -0600 Subject: [PATCH] tgsi: add simple tgsi_is_msaa_target() helper Reviewed-by: Jose Fonseca --- src/gallium/auxiliary/tgsi/tgsi_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2