glamor-gles2: Fixup the pixmap before read back if it is not readable.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
36ac9b7191
commit
566cca59e1
|
@ -67,7 +67,7 @@ _glamor_get_spans(DrawablePtr drawable,
|
|||
glamor_validate_pixmap(pixmap);
|
||||
|
||||
if (glamor_priv->gl_flavor == GLAMOR_GL_ES2
|
||||
&& (glamor_tex_format_is_readable(format) || !no_revert)) {
|
||||
&& (!glamor_tex_format_is_readable(format) || !no_revert)) {
|
||||
|
||||
/* XXX prepare whole pixmap is not efficient. */
|
||||
temp_pixmap =
|
||||
|
|
|
@ -685,7 +685,7 @@ glamor_download_pixmap_to_cpu(PixmapPtr pixmap, glamor_access_t access)
|
|||
glamor_validate_pixmap(pixmap);
|
||||
|
||||
if (glamor_priv->gl_flavor == GLAMOR_GL_ES2
|
||||
&& (glamor_tex_format_is_readable(format) || !no_revert)) {
|
||||
&& (!glamor_tex_format_is_readable(format) || !no_revert)) {
|
||||
temp_pixmap =
|
||||
glamor_es2_pixmap_read_prepare(pixmap, &format,
|
||||
&type, no_alpha,
|
||||
|
|
Loading…
Reference in New Issue
Block a user