<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_EXT_image_dma_buf_import too limited on i965"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87452">87452</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>EGL_EXT_image_dma_buf_import too limited on i965
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vebveb@hotmail.fr
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>EGL_EXT_image_dma_buf_import doesn't impose particular restrictions on the
usage of the imported EGLImage.
However on i965 (gallium drivers don't have this issue), there is no way to
bind the image to a texture under GL.
glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image) will fail.
Run with MESA_DEBUG, the following message appear:
Mesa: User error: GL_INVALID_OPERATION in glEGLImageTargetTexture2DOES(dma
buffers can be used with GL_OES_EGL_image_external only
Problem is that GL_OES_EGL_image_external is a GLES only extension.
Thus glEGLImageTargetTexture2DOES(GL_ TEXTURE_EXTERNAL_OES, image) fails too
with INVALID_ENUM (the exact error may need recheck, this is from memory)
I suggest that EGL_EXT_image_dma_buf_import should not put restrictions on RGBA
formats at all for i965, and that it would fail to import YUV formats if not
using GLES.
Gallium drivers, glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image) will work
(I haven't tested what it does for YUV, I only tested for RGBA)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>