summaryrefslogtreecommitdiff
path: root/glamor/glamor_utils.h
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2012-01-20 15:56:25 +0800
committerEric Anholt <eric@anholt.net>2013-12-18 11:23:48 -0800
commit68789b23e791d81c6987c755a56851961cbb262f (patch)
tree5bf379bd3ee11c63c647e76ea206a2d00688f71c /glamor/glamor_utils.h
parent3373d2c696028a9f2f637430c48b9de1a3776800 (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.h6
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