Summary: | [Dri3 bisected] piglit glx_GLX_ARB_create_context_current_with_no_framebuffer fail | ||
---|---|---|---|
Product: | Mesa | Reporter: | fangxun <xunx.fang> |
Component: | GLX | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | critical | ||
Priority: | high | CC: | bugzilla, christophe.prigent, eero.t.tamminen, huax.lu, mengmeng.meng, naelphin |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | 81551 | ||
Bug Blocks: | |||
Attachments: |
build.log
it should fix this issue |
Description
fangxun
2014-06-04 09:30:12 UTC
Fix you build bot. set xorg.conf as below, it works well. Section "Device" Identifier "Intel" Option "DRI" "2" EndSection Created attachment 101740 [details]
build.log
Build failure is due to "dri3.c:46:9: error: 'NullPixmap' undeclared".
NullPixmap was removed in commit dd6db82680b05cde4a47116b7096c054f3837e20, and xf86 build passes from that.
(In reply to comment #1) > Fix you build bot. Hi, with the patch would fix build issue: -------------------- diff --git a/test/dri3.c b/test/dri3.c index b5eb4ba..45f3285 100644 --- a/test/dri3.c +++ b/test/dri3.c @@ -43,7 +43,7 @@ Pixmap dri3_create_pixmap(Display *dpy, xcb_dri3_pixmap_from_buffer(c, pixmap, draw, size, width, height, stride, depth, bpp, fd); return pixmap; } - return NullPixmap; + return 0; } Then bisect again, find the first bad commit is : commit d8eb87f84f88ad2df42c6fed1d93df76589a14e3 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu May 8 16:25:32 2014 +0100 sna: Add support for DRI3 Hi Chris, would you pls take a look at this bug which blocked WebGL performance testing. Bug will disable WebGL in chrome(Firefox is OK) DRI3 is still being developed/stabilized and its interaction with fences poorly specified. Mesa does not yet utilize the explicit fences implied in the spec. Chris will disable DRI3 by default in the ddx because there are a number of trivial-to-hit bugs that cause X or the compositor to stop updating. You should cross-reference https://bugs.freedesktop.org/show_bug.cgi?id=81551 for the patch that will identify the issue as being the explicit-vs-implicit fencing issue or something new. (In reply to comment #7) > DRI3 is still being developed/stabilized and its interaction with fences > poorly specified. Mesa does not yet utilize the explicit fences implied in > the spec. > > Chris will disable DRI3 by default in the ddx because there are a number of > trivial-to-hit bugs that cause X or the compositor to stop updating. > > You should cross-reference > https://bugs.freedesktop.org/show_bug.cgi?id=81551 for the patch that will > identify the issue as being the explicit-vs-implicit fencing issue or > something new. It still fails on haswell, broadwell and baytrail with the patch. NOTE: It passes on ivybridge on latest driver now. Created attachment 113030 [details]
it should fix this issue
It passes on latest mesa master branch. Verified it on haswell, broadwell and baytrail. Do you mind reconfirming that you actually tested with DRI3 since the proposed patch is not yet included? (In reply to Chris Wilson from comment #12) > Do you mind reconfirming that you actually tested with DRI3 since the > proposed patch is not yet included? Yes, I test with DRI3. When I compile xf86-video-intel and mesa, I add --enable-dri3 option. Without the proposed patch, I could easily reproduce this issue. And adding "DRI 2" option to Xorg.conf, this issue disappear. (In reply to XiongZhang from comment #13) > Yes, I test with DRI3. When I compile xf86-video-intel and mesa, I add > --enable-dri3 option. > Without the proposed patch, I could easily reproduce this issue. And adding > "DRI 2" option to Xorg.conf, this issue disappear. I assume you refer to the original bug and versions of SW at that time. In the meanwhile X intel driver defaulted back to DRI2 from DRI3. I think you need now to set DRI to version 3 specifically in xorg.conf. Chris? (In reply to Eero Tamminen from comment #14) > (In reply to XiongZhang from comment #13) > > Yes, I test with DRI3. When I compile xf86-video-intel and mesa, I add > > --enable-dri3 option. > > Without the proposed patch, I could easily reproduce this issue. And adding > > "DRI 2" option to Xorg.conf, this issue disappear. > > I assume you refer to the original bug and versions of SW at that time. > > In the meanwhile X intel driver defaulted back to DRI2 from DRI3. I think > you need now to set DRI to version 3 specifically in xorg.conf. Chris? I use last week's mesa and xf86-video-intel. I set DRI to version 3 in xorg.conf, the proposed patch fix this issue also. (In reply to Chris Wilson from comment #12) > Do you mind reconfirming that you actually tested with DRI3 since the > proposed patch is not yet included? Sorry, I tested with DRI2, not DRI3. It still fails on DRI3(build with --enable-dri3,set DRI to version 3 in xorg.conf). It passes with attached patch on DRI3. (In reply to Eero Tamminen from comment #14) > (In reply to XiongZhang from comment #13) > > Yes, I test with DRI3. When I compile xf86-video-intel and mesa, I add > > --enable-dri3 option. > > Without the proposed patch, I could easily reproduce this issue. And adding > > "DRI 2" option to Xorg.conf, this issue disappear. > > I assume you refer to the original bug and versions of SW at that time. > > In the meanwhile X intel driver defaulted back to DRI2 from DRI3. I think > you need now to set DRI to version 3 specifically in xorg.conf. Chris? Yes. You also needed to manually --enable-dri3. I've just fixed it that so we build DRI3 (if available) and just limit to DRI2 at runtime (and so allow selection of DRI3 with a normal build). commit db629a38342883176d58357fa014176c9e45115d Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Feb 4 09:34:14 2015 +0000 Allow runtime selection between DRI levels Rather than imposing a maximum DRI level at compile time by compiling out unwanted protocol handlers, default to limiting it at runtime so that we can switch between any level. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> *** Bug 89050 has been marked as a duplicate of this bug. *** The proposed patch doesn't seem to have been merged to mesa. XiongZhang: can you send it to ml ? (In reply to Axel Davy from comment #19) > The proposed patch doesn't seem to have been merged to mesa. > > XiongZhang: can you send it to ml ? It's already there but people may have missed it. http://patchwork.freedesktop.org/patch/41638/ The patch is fine, except spacing. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/95. |
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.