diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-01-20 15:56:25 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-18 11:23:48 -0800 |
commit | 68789b23e791d81c6987c755a56851961cbb262f (patch) | |
tree | 5bf379bd3ee11c63c647e76ea206a2d00688f71c /glamor/glamor_utils.h | |
parent | 3373d2c696028a9f2f637430c48b9de1a3776800 (diff) |
glamor_gles2: Consolidate gles2 pixmap format readable check to one function.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_utils.h')
-rw-r--r-- | glamor/glamor_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index c7d1c2943..b29292832 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -603,4 +603,10 @@ inline static Bool glamor_ddx_fallback_check_gc(GCPtr gc) return (!pixmap || glamor_ddx_fallback_check_pixmap(&pixmap->drawable)); } +inline static Bool glamor_tex_format_is_readable(GLenum format) +{ + return ((format == GL_RGBA || format == GL_RGB || format == GL_ALPHA)); + +} + #endif |