After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703327 - Add a "glFinish" API
Add a "glFinish" API
Status: RESOLVED NOTABUG
Product: cogl
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks: 701801
 
 
Reported: 2013-06-29 19:58 UTC by drago01
Modified: 2013-06-29 21:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
onscreen: Add cogl_onscreen_wait_for_gpu API (1.93 KB, patch)
2013-06-29 19:58 UTC, drago01
none Details | Review

Description drago01 2013-06-29 19:58:12 UTC
There seem to be no API in cogl that allows users to call glFinish but there are cases where it is needed: https://bugzilla.gnome.org/show_bug.cgi?id=701801#c18

The only way to do it currently is to call raw gl which is suboptimal.


There is _cogl_winsys_wait_for_gpu (CoglOnscreen *onscreen) in winsys-glx but it is privat. So I decided to just add a  cogl_onscreen_wait_for_gpu (see patch).
Comment 1 drago01 2013-06-29 19:58:55 UTC
Created attachment 248063 [details] [review]
onscreen: Add cogl_onscreen_wait_for_gpu API

Block until all submitted rendering is complete.
In most cases there should be no need to call this unless
subsequent code needs requires that the drawing is proccessed
by the GPU, like when reuseing buffers using the buffer_age
API.
Comment 2 drago01 2013-06-29 21:16:37 UTC
Not needed atleast not for bug 701801
Comment 3 Neil Roberts 2013-06-29 21:58:52 UTC
Just to note for future reference, if anyone did want some API to call glFinish, there is already cogl_framebuffer_finish which should do the trick.