Re: [PATCH xserver] glamor: keep gl_fbo and fbo consistent

2017-01-24 Thread Olivier Fourdan
> There is a fundamental logical problem with this patch though, because > glamor_upload_picture_to_texture() does: > > assert(glamor_pixmap_is_memory(pixmap)); > > which is basically priv->type == GLAMOR_MEMORY; > > So glamor_upload_picture_to_texture() clearly expects a pixmap of type >

Re: [PATCH xserver] glamor: keep gl_fbo and fbo consistent

2017-01-24 Thread Olivier Fourdan
Hi > If the pixmap type is neither GLAMOR_TEXTURE_ONLY nor GLAMOR_TEXTURE_DRM > we might have the fbo field set but the gl_fbo still set to the default > GLAMOR_FBO_UNATTACHED, which later may fail an assert in > glamor_upload_picture_to_texture(). > > Bugzilla:

[PATCH xserver] glamor: keep gl_fbo and fbo consistent

2017-01-23 Thread Olivier Fourdan
If the pixmap type is neither GLAMOR_TEXTURE_ONLY nor GLAMOR_TEXTURE_DRM we might have the fbo field set but the gl_fbo still set to the default GLAMOR_FBO_UNATTACHED, which later may fail an assert in glamor_upload_picture_to_texture(). Bugzilla: