<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - EGL_PLATFORM=gbm doesn't expose MESA_query_driver extension"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111529">111529</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>EGL_PLATFORM=gbm doesn't expose MESA_query_driver extension
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>not set
</td>
</tr>
<tr>
<th>Priority</th>
<td>not set
</td>
</tr>
<tr>
<th>Component</th>
<td>EGL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jean.hertel@hotmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>When using the gbm platform the extension MESA_query_driver is not exposed.
Here is a sample code showing how to reproduce the issue:
<a href="https://gist.github.com/jlHertel/0ec9b8ef1da0e314e0cef0cc18d4c83b">https://gist.github.com/jlHertel/0ec9b8ef1da0e314e0cef0cc18d4c83b</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>