[Wayland-bugs] [Bug 788420] Wayland: Too wide windows/subsurfaces cause exit
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Mon Oct 2 12:58:48 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788420
Daniel Stone <daniel at fooishbar.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel at fooishbar.org
--- Comment #5 from Daniel Stone <daniel at fooishbar.org> ---
(In reply to Emmanuele Bassi (:ebassi) from comment #4)
> I also wonder if it's possible, at the Wayland compositor level, to map
> multiple textures to the same surface, to allow getting over the texture
> size limit. Cogl already allows this internally with "sliced" textures, with
> limitations on what the textures can do.
Depends. For SHM surfaces, the compositor already has all the information it
needs to use multiple textures from a single SHM buffer. (Let's call that
'shattering' rather than slicing, since that's what the proposal to do the same
for X11 was, and it avoids a terminology collision with mipmap/texture-array
slices.)
As for client GL/Vulkan textures though, not really. Firstly, hardware has
stride limits on buffers (confusingly called 'surfaces' in, e.g. Intel HW), and
that's not exposed through API. So you'd need to kinda guess. Secondly, there's
no way (currently) to expose that wl_buffers are secretly shattered: we'd need
extra tokens in eglQueryWaylandBufferWL to discover the number of subsurfaces
and their offsets, and an extra attrib to EGLImage EGL_WAYLAND_BUFFER_WL import
specifying the offset to apply. The client EGLSurface implementation would then
need to shatter its surfaces internally, which I can't really see flying for
EGL, and definitely not for Vulkan.
tl;dr maybe just use subsurfaces smaller than max texture dimensions instead
(with null input regions so input handling isn't pain)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171002/f2eafc91/attachment.html>
More information about the wayland-bugs
mailing list