diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2017-01-24 18:08:30 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-01-24 11:27:33 -0800 |
commit | 86463981361064dd0352ec215abf1696ce7fc5ea (patch) | |
tree | 4fa60044e0aafc92638c1ab3b2115129a1218a50 /composite | |
parent | e7b8b7b131d8283c96ed0aff4593ab41441b5d3b (diff) |
glamor: Two pass won't work on memory pixmaps
When selecting "CA_TWO_PASS" in glamor_composite_clipped_region() when
the hardware does not support "GL_ARB_blend_func_extended", we call
glamor_composite_choose_shader() twice in a row, which in turn calls
glamor_pixmap_ensure_fbo().
On memory pixmaps, the first call will set the FBO and the second one
will fail an assertion in glamor_upload_picture_to_texture() because
the FBO is already set.
Bail out earlier when the mask pixmap is in memory and the hardware
capabilities would require to use two pass, so that the assertion is not
failed and the rendering is correct.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99346
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'composite')
0 files changed, 0 insertions, 0 deletions