Hi Adrian,

On 25 April 2016 at 14:23, Adrian Pielech <adrian.piel...@intel.com> wrote:
> Till now window surface size on wayland was -1.
> It's better to assign windows size to proper surface property.

Hm. This will be done from update_buffers(), so will only be 'invalid'
before the first rendering has been done. I guess this is for querying
EGL_WIDTH/EGL_HEIGHT?

Note that this is symmetrical with wl_egl_window_resize() currently;
calling resize does not result in these values being updated until
updating the surface buffers (from get_back_bo, triggered after the
first rendering call after a swap). So we have the following behaviour
for eglQuerySurface:
  - querying dimensions after surface creation: invalid currently,
valid with this patch
  - querying dimensions after resize: stale/old size
  - querying dimensions after rendering: correct values

Do you have a real-world usecase which depends on this?

Cheers,
Daniel
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to