Bug 72835

Summary: buffer-count Weston test failing
Product: Wayland Reporter: U. Artie Eoff <ullysses.a.eoff>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: buffer-count.weston-log.txt
buffer-count.weston-serverlog.txt

Description U. Artie Eoff 2013-12-18 15:27:37 UTC
Created attachment 90931 [details]
buffer-count.weston-log.txt

The Weston buffer-count check test fails consistently with the following error:

buffer-count.weston: buffer-count-test.c:127: test_buffer_count: Assertion `buffer_count == 2' failed.

This happens on the following s/w stack (stable deps):

wayland (master) 1.3.91-0-g01bde63
drm (master) libdrm-2.4.50-0-g4c5de72
mesa (10.0) heads/10.0-0-g6f7da01
libva (master) libva-1.2.1-0-g88ed1eb
intel-driver (master) 1.2.1-0-g8f306e3
weston (master) heads/master-0-gdf42a80

However, the test passes just fine on an unstable (master deps) s/w stack:

wayland (master) 1.3.91-0-g01bde63
drm (master) heads/master-0-g068ea68
mesa (master) heads/master-0-g78fcc31
libva (master) heads/master-0-g73a11b3
intel-driver (master) 1.2.2-0-g121e70d
weston (master) heads/master-0-gdf42a80

Perhaps the variant is Mesa 10.0.x vs. Mesa master??
Comment 1 U. Artie Eoff 2013-12-18 15:27:59 UTC
Created attachment 90932 [details]
buffer-count.weston-serverlog.txt
Comment 2 Neil Roberts 2013-12-18 17:26:58 UTC
The buffer-count test case is fixed by the following patch in Mesa:

http://cgit.freedesktop.org/mesa/mesa/commit/?h=25cc889004aad6d1cab

That patch isn't on the 10.0 branch, so that makes sense.
Comment 3 Kristian Høgsberg 2014-01-02 01:38:56 UTC
commit 42284f5f9e08d68b28d011924983a19f1e070eef
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Wed Jan 1 17:38:04 2014 -0800

    tests: Only run buffer-count test if we have at least mesa 10
    
    https://bugs.freedesktop.org/show_bug.cgi?id=72835
Comment 4 Pekka Paalanen 2014-01-08 14:07:43 UTC
A further small fix is needed:
http://lists.freedesktop.org/archives/wayland-devel/2014-January/012757.html

Otherwise it fails on Mesa 10.0.1.

Reopening.
Comment 5 Kristian Høgsberg 2014-01-09 06:21:29 UTC
Closing again, thanks Pekka:

commit ca6bd745b847e6dc301d5f642bca23b21a80e5e3
Author: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Date:   Wed Jan 8 16:05:34 2014 +0200

    tests: Only run buffer-count test on Mesa >= 10.1
    
    Comment #2 in the bug report says Mesa 10.0 branch does not have the
    fix, and indeed buffer-count test fails on Mesa 10.0.1. Fix the test to
    require Mesa 10.1 or later.
    
    Now I correctly get:
        mesa version too old (OpenGL ES 3.0 Mesa 10.0.1 (git-12484d2))
    
    https://bugs.freedesktop.org/show_bug.cgi?id=72835
    
    Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.