Bug 111756 - WebGL2 conformance test failed when enabling Iris on Coffee Lake
Summary: WebGL2 conformance test failed when enabling Iris on Coffee Lake
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/Iris (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: not set not set
Assignee: Kenneth Graunke
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-20 09:57 UTC by Lin Sun
Modified: 2019-09-23 04:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Failed test case (377.10 KB, application/zip)
2019-09-20 09:57 UTC, Lin Sun
Details

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

Steps:
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
  3.3 Set MESA_LOADER_DRIVER_OVERRIDE=iris
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.

Note:
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:

https://www.pivotaltracker.com/story/show/168472097
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:
    https://www.khronos.org/registry/webgl/sdk/tests/conformance2/renderbuffers/invalidate-framebuffer.html?webglVersion=2&quiet=0&quick=1
    
    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.