[Mesa-dev] [PATCH] add test for wayland drm, XRGB/YUYV is supported

Zhao, Halley halley.zhao at intel.com
Fri Jun 8 04:36:25 CEST 2012


You are right Eric, it just draws some visual blocks on overlay plane.
Now, I sent the patch to wayland/Weston.
Since YUY2 buffer renders to overlay; I don't have a way to read it back. So conformance test is not available.

In this case, EGL is used but hidden by weston and wayland-drm; 
wl_drm_create_buffer() will invoke Weston function, and finally goes to dri2_wl_reference_buffer in $mesa/egl/drivers/dri2/egl_dri2.c.

I can't create a case in X11 environments, because:
1. in X11, XV use XvShm instead of depends on EGL.
2. app/client can't render to overlay plane directly, because overlay related ioctls are defined with DRM_MASTER (no DRM_AUTH). So in X11, only xv driver can render to overlay.




> -----Original Message-----
> From: Eric Anholt [mailto:eric at anholt.net]
> Sent: Friday, June 08, 2012 4:24 AM
> To: Zhao, Halley; Zhao, Halley; mesa-dev at lists.freedesktop.org
> Cc: Barnes, Jesse
> Subject: RE: [PATCH] add test for wayland drm, XRGB/YUYV is supported
> 
> On Mon, 4 Jun 2012 09:43:06 +0000, "Zhao, Halley" <halley.zhao at intel.com>
> wrote:
> > diff --git a/tests/wayland-drm/Makefile.am
> > b/tests/wayland-drm/Makefile.am new file mode 100644 index
> > 0000000..526acde
> > --- /dev/null
> > +++ b/tests/wayland-drm/Makefile.am
> > @@ -0,0 +1,12 @@
> > +bin_PROGRAMS = wayland_drm_test
> 
> This definitely shouldn't be an installed binary.
> 
> If I'm understanding it right, this is something you run that draws a couple of
> images into a wayland window?  It doesn't do any tests on the results?  If so,
> it might be interesting for some wayland demos repository, but it probably isn't
> Mesa code.
> 
> When I was asking about tests, I was hoping for something we could put in
> piglit using EGL that would make sure that the changes worked.  I don't even
> see any calls to EGL here.


More information about the mesa-dev mailing list