diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2011-12-16 15:11:16 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2011-12-16 20:23:09 +0800 |
commit | e2c8bac972cf46982bf64bd786ecc001009081f0 (patch) | |
tree | 88202a2eb042bb9073d14cb96e5fce49abe1e6d5 /src/intel_glamor.c | |
parent | 19c184b7e4f8de747ed6fb1f6f910238193cf2a1 (diff) |
uxa/glamor: Fallback to new glamor pixmap if failed to create textured pixmap.
If we failed to create textured pixmap from BO's handle, we
turn to create a new glamor pixmap by call glamor_create_pixmap
rather than fallback to in-memory pixmap. Have to introduce
a new wrapper function intel_glamor_create_pixmap.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src/intel_glamor.c')
-rw-r--r-- | src/intel_glamor.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel_glamor.c b/src/intel_glamor.c index 0cf8ed75..8daa4b19 100644 --- a/src/intel_glamor.c +++ b/src/intel_glamor.c @@ -78,6 +78,13 @@ intel_glamor_pre_init(ScrnInfoPtr scrn) return TRUE; } +PixmapPtr +intel_glamor_create_pixmap(ScreenPtr screen, int w, int h, + int depth, unsigned int usage) +{ + return glamor_create_pixmap(screen, w, h, depth, usage); +} + Bool intel_glamor_create_textured_pixmap(PixmapPtr pixmap) { |