Bug 111756

Summary: WebGL2 conformance test failed when enabling Iris on Coffee Lake
Product: Mesa Reporter: Lin Sun <lin.sun>
Component: Drivers/Gallium/IrisAssignee: Kenneth Graunke <kenneth>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: not set    
Priority: not set CC: yang.gu
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:
Attachments: Failed test case

Description Lin Sun 2019-09-20 09:57:30 UTC
Created attachment 145451 [details]
Failed test case

1. Fetch latest master branch (88b8922f57137e75c8ea48969e27a8275adbdf5a) of Mesa source code.
2. Build Mesa with following options:
meson out -Dplatforms=x11,drm \
          -Ddri-drivers=i915,i965 -Dvulkan-drivers=intel -Dgallium-drivers=iris \
          -Dgles1=true -Dgles2=true -Dshared-glapi=true -Dgbm=true -Ddri3=true
3. Set environments:
  3.1 Add Mesa library path to LD_LIBRARY_PATH
  3.2 Add Mesa dri path to LIBGL_DRIVERS_PATH
4. Launch Chrome, open the test page (conformance2/renderbuffers/invalidate-framebuffer.html) in the attachment

Expected Result:
The test case passed.

Actual Result:
Test test case failed.

This test case passed if MESA_LOADER_DRIVER_OVERRIDE=iris is not set while all other steps is the same.
Comment 1 Mark Janes 2019-09-20 17:34:11 UTC
Mesa CI doesn't run webgl for iris yet, but it is on the roadmap:

Comment 3 Kenneth Graunke 2019-09-23 04:36:57 UTC
Fixed on master with:

commit ec81f19b44951fbc0e6a8b381afe6d85834132b8
Author: Kenneth Graunke <kenneth@whitecape.org>
Date:   Fri Sep 20 14:33:51 2019 -0700

    st/mesa: Bail on incomplete attachments in discard_framebuffer
    Incomplete attachments don't have an associated pipe_surface, so
    this would crash.
    Fixes a WebGL conformance test that uses incomplete attachments:
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111756
    Reviewed-By: Tapani Pälli <tapani.palli@intel.com>

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.