Merge ~smspillaz/compiz:buffer-age-egl into compiz:master
Status: | Merged |
---|---|
Approved by: | Dmitry Shachnev |
Approved revision: | 6c9139e1c22684d915735aabe071c0d0abbf661c |
Merged at revision: | 061e8332b655ba35a03d905601b5f5866e2f4db8 |
Proposed branch: | ~smspillaz/compiz:buffer-age-egl |
Merge into: | compiz:master |
Diff against target: |
136 lines (+74/-6) 2 files modified
plugins/opengl/include/opengl/opengl.h (+2/-0) plugins/opengl/src/screen.cpp (+72/-6) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dmitry Shachnev | Needs Fixing | ||
Review via email:
|
Commit message
Enable EGL_EXT_buffer_age on USE_GLES where it is advertised.
Description of the change
Enable EGL_EXT_buffer_age on USE_GLES
buffer_age is long-since supported on GLES platforms, we can also use it there too with minimal changes. Tested on vc4 (Rasberry Pi 4).
A nice side-effect of this is that we don't have to draw the whole scene into an fbo and then redraw it later, just so that we can get double-buffering. Which should be nice on fillrate-bound GPUs.
Probably this should be tested on a few other platforms before merging, I am unsure if there are drivers for which this is broken. At least cogl appears to support it, so maybe its not too bad on other drivers: https:/
> Probably this should be tested on a few other platforms before merging
I don’t have any GLES hardware to test this on. Code changes look good, so if it works for you, let’s just merge it.