Bug 67330 - [i965 SNA Bisected]Piglit spec_OpenGL_1.0_gl-1.0-front-invalidate-back fails with compositer
Summary: [i965 SNA Bisected]Piglit spec_OpenGL_1.0_gl-1.0-front-invalidate-back fails ...
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 02:45 UTC by lu hua
Modified: 2013-07-29 02:19 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description lu hua 2013-07-26 02:45:49 UTC
System Environment:
--------------------------
Arch:         x86_64
Platform:  Ironlake/sandybridge/ivybridge/haswell
Libdrm:	(master)libdrm-2.4.46-2-gfea5408098c3c3057958e85ea9d7146f0b08749e
Mesa:	(master)0ac316470813b4f2e825ff4befbbf2135cccce94
Xserver:(master)xorg-server-1.14.99.1-162-g43ac0491e36cdbb716b5c9d39c97d0aba3bebd75
Xf86_video_intel:(master)2.21.12-49-gef2a45731ef55b9fbafe5da67e0251b9b871bda9
Cairo:		(master)03c81d414d4edb710c91f96ddb7dbf73e5432583
Libva:		(staging)d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9
Libva_intel_driver:(staging)7783b945824c9c01b415ca7b72c2d9463c8ae40b
Kernel:	(drm-intel-nightly) c52b080ba86c3f1cbff5bc88ae3efe005c999072

Bug detailed description:
-------------------------
It fails on Ironlake/sandybridge/ivybridge/haswell with SNA. It works well with UXA. It fails compositer and works well with raw X.
Following cases also have this issue:
glx_glx-copy-sub-buffer	
glx_glx-copy-sub-buffer_samples=2	
glx_glx-copy-sub-buffer_samples=4		
spec_OpenGL_1.1_read-front	
spec_OpenGL_1.1_read-front_clear-front-first	
spec_OpenGL_1.1_read-front_clear-front-first_samples=2	
spec_OpenGL_1.1_read-front_clear-front-first_samples=4	
spec_OpenGL_1.1_read-front_samples=2	
spec_OpenGL_1.1_read-front_samples=4	

Bisect shows:6d80bd6a7311926f258cd92f0b22e8d03022b62b is the first bad commit.
commit 6d80bd6a7311926f258cd92f0b22e8d03022b62b
Author:     Chris Wilson <chris@chris-wilson.co.uk>
AuthorDate: Wed Jul 24 09:03:45 2013 +0100
Commit:     Chris Wilson <chris@chris-wilson.co.uk>
CommitDate: Wed Jul 24 09:35:13 2013 +0100

    sna/dri: Cleanup validation of blit extents

    Prompted by a suggestion by Haihao, clarify the intent behind checking
    the incoming maximum blit extents against the recorded sizes of the
    attached bo. Due to the asynchronous nature of DRI2 invalidation, it is
    possible for the DRI2 buffer to be stale and for its bo to be smaller
    than required for the client's blit.

    References: https://bugs.freedesktop.org/show_bug.cgi?id=67210
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: haihao <haihao.xiang@intel.com>


output:
Probe color at (0,0)
  Expected: 0.000000 1.000000 0.000000
  Observed: 0.000000 0.000000 0.000000
PIGLIT: {'result': 'fail' }


Reproduce steps:
----------------------------
1. xinit
2. gnome-session
3. ./gl-1.0-front-invalidate-back -auto
Comment 1 Chris Wilson 2013-07-26 06:43:52 UTC
commit 6f5fd772c7ca656b86394a0f036d4e0cf5b33d8e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Jul 25 08:29:55 2013 +0100

    sna/dri: Discard the strict checking for stale bo before performing a blit
Comment 2 lu hua 2013-07-29 02:19:39 UTC
Verified.Fixed.


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.