<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 - [swrast] egl-create-pbuffer-surface regression"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96865">96865</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[swrast] egl-create-pbuffer-surface regression
          </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>Keywords</th>
          <td>bisected, regression
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>chad.versace@intel.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: a0bf1768c7131a5d9a23c5177e7b9d7a0267ef6c (12.1.0-devel)

$ ./bin/egl-create-pbuffer-surface -auto
Segmentation fault (core dumped)

(gdb) bt
#0  __memcpy_avx_unaligned () at
../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:238
#1  0x00007ff000483961 in memcpy (__len=262144, __src=<optimized out>,
__dest=0x0) at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2  swrastGetImage (read=<optimized out>, x=<optimized out>, y=<optimized out>,
w=<optimized out>, h=<optimized out>, data=0x0, 
    loaderPrivate=0x1b00a60) at drivers/dri2/platform_x11.c:179
#3  0x00007feffb11e65c in swrastSetTexBuffer2 (pDRICtx=<optimized out>,
target=<optimized out>, texture_format=8410, dPriv=0x1aef960)
    at swrast.c:110
#4  0x00007ff00047feb2 in dri2_bind_tex_image (drv=0x1937c10, disp=0x19375d0,
surf=0x1b00a60, buffer=12420) at drivers/dri2/egl_dri2.c:1452
#5  0x00007ff000475dff in eglBindTexImage (dpy=0x19375d0, surface=<optimized
out>, buffer=12420) at main/eglapi.c:944
#6  0x00000000004024d2 in draw (state=0x7fff00df85c0) at
piglit/tests/egl/egl-create-pbuffer-surface.c:64
#7  0x0000000000401d12 in event_loop (state=0x7fff00df85c0,
test=0x7fff00df8650) at piglit/tests/egl/egl-util.c:158
#8  0x00000000004022ae in egl_util_run (test=0x7fff00df8650, argc=2,
argv=0x7fff00df8788)
    at piglit/tests/egl/egl-util.c:299
#9  0x00000000004026b1 in main (argc=2, argv=0x7fff00df8788) at
piglit/tests/egl/egl-create-pbuffer-surface.c:100
(gdb) frame 2
#2  swrastGetImage (read=<optimized out>, x=<optimized out>, y=<optimized out>,
w=<optimized out>, h=<optimized out>, data=0x0, 
    loaderPrivate=0x1b00a60) at drivers/dri2/platform_x11.c:179
179           memcpy(data, idata, bytes);
(gdb) print data
$1 = 0x0
(gdb) print idata
$2 = <optimized out>
(gdb) print bytes
$3 = 262144



9fea9d6f8e862a8b3f569d37d06d1ff69c6e18f5 is the first bad commit
commit 9fea9d6f8e862a8b3f569d37d06d1ff69c6e18f5
Author: Guillaume Charifi <<a href="mailto:guillaume.charifi@sfr.fr">guillaume.charifi@sfr.fr</a>>
Date:   Mon Jun 20 15:27:33 2016 +0200

    egl: Fix the bad surface attributes combination checking for pbuffers. (v3)

    Fixes a regression induced by commit
a0674ce5c41903ccd161e89abb149621bfbc40d2:
    When EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET were both specified (and
    both != EGL_NO_TEXTURE), an error was instantly triggered, before the
    other one had even a chance to be checked, which is obviously not the
    intended behaviour.

    v2: Full commit hash, remove useless variables.
    v3: [chadv] Add Fixes footers.

    Fixes: piglit "spec/egl 1.4/eglcreatepbuffersurface and then glclear"
    Fixes: piglit "spec/egl 1.4/largest possible eglcreatepbuffersurface and
then glclear"
    Signed-off-by: Guillaume Charifi <<a href="mailto:guillaume.charifi@sfr.fr">guillaume.charifi@sfr.fr</a>>
    Reviewed-by: Frank Binns <<a href="mailto:frank.binns@imgtec.com">frank.binns@imgtec.com</a>>
    Reviewed-by: Chad Versace <<a href="mailto:chad.versace@intel.com">chad.versace@intel.com</a>>

:040000 040000 3c833d0cdcb72af089cc2a777d4e782db0f51646
a851d5bcedb1fe8dd95b0a173cfaacdf19ea1025 M      src
bisect run success</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>