[Mesa-dev] [Bug 99638] Mesa opengles Peppa Pig and openggles2 smurfs on Radeon PowerPC and PPC64

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 11 01:50:14 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99638

--- Comment #13 from Ilia Mirkin <imirkin at alum.mit.edu> ---
(In reply to Daniel Stone from comment #7)
> At a blind guess, I'm going to say that this is because Wayland's formats
> are defined as DRM's are, i.e. explicitly little-endian where pixels are
> accessed whole, rather than GL's byte-by-byte. I suppose the conversion
> between GL and Wayland/DRM formats are simply broken for BE.

A quick glance at platform_wayland.c shows this:

static EGLBoolean
dri2_wl_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp)
{
   struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
   static const struct {
      const char *format_name;
      int has_format;
      unsigned int rgba_masks[4];
   } visuals[] = {
      { "XRGB8888", HAS_XRGB8888, { 0xff0000, 0xff00, 0x00ff, 0xff000000 } },
      { "ARGB8888", HAS_ARGB8888, { 0xff0000, 0xff00, 0x00ff, 0 } },
      { "RGB565",   HAS_RGB565,   { 0x00f800, 0x07e0, 0x001f, 0 } },
   };

Which seems like it could be off for BE...

I happen to have a PPC G5 with a NV34/AGP sitting in it. I might try to play
with it later (got it all to work with X11 again a while back). Although I'd
have to get help with the wayland part of it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170211/6bc35ef8/attachment-0001.html>


More information about the mesa-dev mailing list