[Mesa-dev] [PATCH 08/11] glsl: simplify glsl_type::is_integer_32_64()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Apr 21 09:53:28 UTC 2017


---
 src/compiler/glsl_types.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index b98ce66c48..403663f7b8 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -491,8 +491,7 @@ struct glsl_type {
     */
    bool is_integer_32_64() const
    {
-      return (base_type == GLSL_TYPE_UINT) || (base_type == GLSL_TYPE_INT) ||
-             (base_type == GLSL_TYPE_UINT64) || (base_type == GLSL_TYPE_INT64);
+      return is_integer() || is_integer_64();
    }
 
    /**
-- 
2.12.2



More information about the mesa-dev mailing list