<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018 at 11:18 AM Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com">lionel.g.landwerlin@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Commit a5c39ed974402c ("i965: Lift restriction in external textures<br>
for EGLImage support") from Mesa lifted the restriction that this test<br>
was checking. Easy fix!<br>
<br>
Signed-off-by: Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com" target="_blank">lionel.g.landwerlin@intel.com</a>><br>
---<br>
 tests/opengl.py                               |   2 -<br>
 .../CMakeLists.gles2.txt                      |   1 -<br>
 .../intel_external_sampler_with_dma_only.c    | 104 ------------------<br>
 3 files changed, 107 deletions(-)<br>
 delete mode 100644 tests/spec/ext_image_dma_buf_import/intel_external_sampler_with_dma_only.c<br>
<br>
diff --git a/tests/opengl.py b/tests/opengl.py<br>
index b74606be1..83cc18fe0 100644<br>
--- a/tests/opengl.py<br>
+++ b/tests/opengl.py<br>
@@ -3016,8 +3016,6 @@ with profile.test_list.group_manager(<br>
       run_concurrent=False)<br>
     g(['ext_image_dma_buf_import-intel_external_sampler_only'],<br>
       run_concurrent=False)<br>
-    g(['ext_image_dma_buf_import-intel_external_sampler_with_dma_only'],<br>
-      run_concurrent=False)<br>
     g(['ext_image_dma_buf_import-refcount'])<br>
     g(['ext_image_dma_buf_import-sample_rgb', '-fmt=AR24'],<br>
       'ext_image_dma_buf_import-sample_argb8888', run_concurrent=False)<br>
diff --git a/tests/spec/ext_image_dma_buf_import/CMakeLists.gles2.txt b/tests/spec/ext_image_dma_buf_import/CMakeLists.gles2.txt<br>
index 93f43fad9..f99a5d800 100644<br>
--- a/tests/spec/ext_image_dma_buf_import/CMakeLists.gles2.txt<br>
+++ b/tests/spec/ext_image_dma_buf_import/CMakeLists.gles2.txt<br>
@@ -19,7 +19,6 @@ if(PIGLIT_BUILD_DMA_BUF_TESTS)<br>
        piglit_add_executable(ext_image_dma_buf_import-refcount refcount.c sample_common.c image_common.c)<br>
        piglit_add_executable(ext_image_dma_buf_import-sample_yuv sample_yuv.c sample_common.c image_common.c)<br>
        piglit_add_executable(ext_image_dma_buf_import-sample_rgb sample_rgb.c sample_common.c image_common.c)<br>
-       piglit_add_executable(ext_image_dma_buf_import-intel_external_sampler_with_dma_only intel_external_sampler_with_dma_only.c image_common.c)<br>
        piglit_add_executable(ext_image_dma_buf_import-transcode-nv12-as-r8-gr88 transcode-nv12-as-r8-gr88.c image_common.c)<br>
 endif()<br>
<br>
diff --git a/tests/spec/ext_image_dma_buf_import/intel_external_sampler_with_dma_only.c b/tests/spec/ext_image_dma_buf_import/intel_external_sampler_with_dma_only.c<br>
deleted file mode 100644<br>
index 6b5c7a1e7..000000000<br>
--- a/tests/spec/ext_image_dma_buf_import/intel_external_sampler_with_dma_only.c<br>
+++ /dev/null<br>
@@ -1,104 +0,0 @@<br>
-/*<br>
- * Copyright © 2013 Intel Corporation<br>
- *<br>
- * Permission is hereby granted, free of charge, to any person obtaining a<br>
- * copy of this software and associated documentation files (the "Software"),<br>
- * to deal in the Software without restriction, including without limitation<br>
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
- * and/or sell copies of the Software, and to permit persons to whom the<br>
- * Software is furnished to do so, subject to the following conditions:<br>
- *<br>
- * The above copyright notice and this permission notice (including the next<br>
- * paragraph) shall be included in all copies or substantial portions of the<br>
- * Software.<br>
- *<br>
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL<br>
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS<br>
- * IN THE SOFTWARE.<br>
- */<br>
-<br>
-#include "image_common.h"<br>
-<br>
-/**<br>
- * @file intel_external_sampler_with_dma_only.c<br>
- *<br>
- * Intel driver allows image external sampler to be used only with imported <br>
- * dma buffers. This test creates an egl image based on a 2D-texture, attempts<br>
- * to use the image as target for an external texture, and expects to fail with<br>
- * GL_INVALID_OPERATION.<br>
- */<br>
-<br>
-PIGLIT_GL_TEST_CONFIG_BEGIN<br>
-<br>
-       config.supports_gl_es_version = 10;<br>
-<br>
-PIGLIT_GL_TEST_CONFIG_END<br>
-<br>
-static EGLImageKHR<br>
-create_tex_based_egl_image(unsigned w, unsigned h, const unsigned char *pixels)<br>
-{<br>
-       GLuint tex;<br>
-       EGLImageKHR img;<br>
-<br>
-       glGenTextures(1, &tex);<br>
-       glBindTexture(GL_TEXTURE_2D, tex);<br>
-<br>
-       glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, GL_RGBA,<br>
-              GL_UNSIGNED_BYTE, pixels);<br>
-<br>
-       img = eglCreateImageKHR(eglGetCurrentDisplay(), eglGetCurrentContext(),<br>
-              EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer)(intptr_t)tex, 0);<br>
-       if (!img)<br>
-              printf("failed to create EGL image out of texture\n");<br>
-<br>
-       glDeleteTextures(1, &tex);<br>
-<br>
-       return img;<br>
-}<br>
-<br>
-enum piglit_result<br>
-piglit_display(void)<br>
-{<br>
-       GLuint tex;<br>
-       enum piglit_result result = PIGLIT_FAIL;<br>
-       const unsigned char src[] = { 0x00, 0x00, 0x00, 0x00 };<br>
-       EGLImageKHR img = create_tex_based_egl_image(1, 1, src);<br>
-<br>
-       if (img == EGL_NO_IMAGE_KHR)<br>
-              return PIGLIT_FAIL;<br>
-<br>
-       glGenTextures(1, &tex);<br>
-       glBindTexture(GL_TEXTURE_EXTERNAL_OES, tex);<br>
-<br>
-       glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES,<br>
-                              (GLeglImageOES)img);<br>
-<br>
-       if (piglit_check_gl_error(GL_INVALID_OPERATION))<br>
-              result = PIGLIT_PASS;<br>
-<br>
-       glDeleteTextures(1, &tex);<br>
-       eglDestroyImageKHR(eglGetCurrentDisplay(), img);<br>
-<br>
-       return result;<br>
-}<br>
-<br>
-void<br>
-piglit_init(int argc, char **argv)<br>
-{<br>
-       static const char intel_id[] = "Intel Open Source Technology Center";<br>
-       const char *vendor_str;<br>
-       EGLDisplay egl_dpy = eglGetCurrentDisplay();<br>
-<br>
-       piglit_require_egl_extension(egl_dpy, "EGL_EXT_image_dma_buf_import");<br>
-       piglit_require_egl_extension(egl_dpy, "EGL_KHR_image_base");<br>
-<br>
-       vendor_str = (const char *)glGetString(GL_VENDOR);<br>
-       if (strncmp(vendor_str, intel_id, sizeof(intel_id) - 1) != 0) {<br>
-               printf("Test requires intel gpu\n");<br></blockquote><div><br></div><div>Any test that does this is bogus.  We tests specs, not Intel's interpretation of specs.</div><div><br></div><div>Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-               piglit_report_result(PIGLIT_SKIP);<br>
-       }<br>
-}<br>
-- <br>
2.19.1<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">Piglit@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</blockquote></div></div>