[Mesa-dev] [Bug 111529] EGL_PLATFORM=gbm doesn't expose MESA_query_driver extension

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Sep 1 11:24:48 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111529

            Bug ID: 111529
           Summary: EGL_PLATFORM=gbm doesn't expose MESA_query_driver
                    extension
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: not set
          Priority: not set
         Component: EGL
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: jean.hertel at hotmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

When using the gbm platform the extension MESA_query_driver is not exposed.

Here is a sample code showing how to reproduce the issue:
https://gist.github.com/jlHertel/0ec9b8ef1da0e314e0cef0cc18d4c83b

Compile with g++ -o gbm_test.bin gbm_test.cpp -lgbm -lGL -lEGL
-I/usr/include/libdrm -I/usr/include/EGL -ldrm

Executing with EGL_PLATFORM=x11 ./gbm_test.bin works as expected and the
extension EGL_MESA_query_driver is available.

Executing with EGL_PLATFORM=gbm ./gbm_test.bin fails, saying that the extension
is not available.


Tested with MESA-git. Commit 87fa8d9ebc0dcd8c0ba1405d590ee6337fce69ba from Thu
Jun 20 20:18:11 2019 -0700

My investigation so far makes me believe the issue is somewhat related to the
way platform_drm.c is implemented. All other platforms make a call to
dri2_create_screen(). This function is calling the drivers, and subsequently,
loading the configuration options.
On the comment of that function it says:
"
/* All platforms but DRM call this function to create the screen and populate
 * the driver_configs. DRM inherits that information from its display - GBM.
 */
"

GBM doesn't seem to be loading the driver configuration, but unfortunately I
have no clue where this is supposed to happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190901/777084cd/attachment.html>


More information about the mesa-dev mailing list