[Mesa-dev] [PATCH 1/3] tgsi: add simple tgsi_is_msaa_target() helper

Brian Paul brianp at vmware.com
Fri Apr 1 18:01:10 UTC 2016


---
 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 3a049ee..ca07bfd 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
-- 
1.9.1



More information about the mesa-dev mailing list