<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [BDW]Piglit some spec/EXT_framebuffer_multisample* cases segfault"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=77217">77217</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[BDW]Piglit some spec/EXT_framebuffer_multisample* cases segfault
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>huax.lu@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>System Environment:
--------------------------
Platform: Broadwell
Libdrm:       
(master)libdrm-2.4.52-10-g1cb5fc706cf5913d9dee33c939f65a23ecea17a5
Mesa:        (master)159cec9dec2320d821d388c0df8140c7705b6e0b
Xserver:   
(master)xorg-server-1.15.99.901-204-g901fbfbbbd71c0d82080957f8ba09eebbc786f2b
Xf86_video_intel:(master)2.99.911-44-g3310ee89c1f1a663de5f5b12b8125809a213996f
Cairo:        (master)bb17403622e9ea474017e0039af8ee48b2b285db
Libva:        (staging)960352aaf1e11891a533ce2c98b16edde24d6851
Libva_intel_driver:(staging)150f67c67bd92cd201b75a92388fe3a63b00cd8a
Kernel:    (drm-intel-nightly) 7cd8b823493acc320c7db9112de9d4e21c6dbd11

Bug detailed description:
-----------------------------
Following spec_EXT_framebuffer_multisample* cases segfault on Broadwell with
Mesa master branch, but works well on Haswell.

spec_EXT_framebuffer_multisample_multisample-blit_2_stencil
spec_EXT_framebuffer_multisample_multisample-blit_4_stencil
spec_EXT_framebuffer_multisample_multisample-blit_6_stencil
spec_EXT_framebuffer_multisample_multisample-blit_8_stencil
spec_EXT_framebuffer_multisample_no-color_2_stencil_combined
spec_EXT_framebuffer_multisample_no-color_2_stencil_separate
spec_EXT_framebuffer_multisample_no-color_2_stencil_single
spec_EXT_framebuffer_multisample_no-color_4_stencil_combined
spec_EXT_framebuffer_multisample_no-color_4_stencil_separate
spec_EXT_framebuffer_multisample_no-color_4_stencil_single
spec_EXT_framebuffer_multisample_no-color_6_stencil_combined
spec_EXT_framebuffer_multisample_no-color_6_stencil_separate
spec_EXT_framebuffer_multisample_no-color_6_stencil_single
spec_EXT_framebuffer_multisample_no-color_8_stencil_combined
spec_EXT_framebuffer_multisample_no-color_8_stencil_separate
spec_EXT_framebuffer_multisample_no-color_8_stencil_single
spec_EXT_framebuffer_multisample_unaligned-blit_2_stencil_downsample
spec_EXT_framebuffer_multisample_unaligned-blit_2_stencil_msaa
spec_EXT_framebuffer_multisample_unaligned-blit_2_stencil_upsample
spec_EXT_framebuffer_multisample_unaligned-blit_4_stencil_downsample
spec_EXT_framebuffer_multisample_unaligned-blit_4_stencil_msaa
spec_EXT_framebuffer_multisample_unaligned-blit_4_stencil_upsample
spec_EXT_framebuffer_multisample_unaligned-blit_6_stencil_downsample
spec_EXT_framebuffer_multisample_unaligned-blit_6_stencil_msaa
spec_EXT_framebuffer_multisample_unaligned-blit_6_stencil_upsample
spec_EXT_framebuffer_multisample_unaligned-blit_8_stencil_downsample
spec_EXT_framebuffer_multisample_unaligned-blit_8_stencil_msaa
spec_EXT_framebuffer_multisample_unaligned-blit_8_stencil_upsample
spec_EXT_framebuffer_multisample_upsample_2_stencil
spec_EXT_framebuffer_multisample_upsample_4_stencil
spec_EXT_framebuffer_multisample_upsample_6_stencil
spec_EXT_framebuffer_multisample_upsample_8_stencil
spec_EXT_framebuffer_multisample_accuracy_2_stencil_resolve_depthstencil
spec_EXT_framebuffer_multisample_accuracy_2_stencil_resolve_small_depthstencil
spec_EXT_framebuffer_multisample_accuracy_4_stencil_resolve_depthstencil
spec_EXT_framebuffer_multisample_accuracy_4_stencil_resolve_small_depthstencil
spec_EXT_framebuffer_multisample_accuracy_6_stencil_resolve_depthstencil
spec_EXT_framebuffer_multisample_accuracy_6_stencil_resolve_small_depthstencil
spec_EXT_framebuffer_multisample_accuracy_8_stencil_resolve_depthstencil
spec_EXT_framebuffer_multisample_accuracy_8_stencil_resolve_small_depthstencil

run ./bin/ext_framebuffer_multisample-multisample-blit 2 stencil -fbo -auto
output:
Failed to blit
Segmentation fault (core dumped)

BT:
#0  0x0000003ecf1478f9 in __memcpy_ssse3_back () from /usr/lib64/libc.so.6
#1  0x00007ffff41445a6 in intel_miptree_copy_slice_sw
(brw=brw@entry=0x7ffff3e56038, dst_mt=dst_mt@entry=0xe6abf0,
src_mt=src_mt@entry=0xd57780, level=level@entry=0,
    slice=slice@entry=0, width=width@entry=512, height=height@entry=256) at
intel_mipmap_tree.c:1026
#2  0x00007ffff41447cb in intel_miptree_copy_slice (depth=0, face=0, level=0,
src_mt=0xd57780, dst_mt=0xe6abf0, brw=0x7ffff3e56038) at
intel_mipmap_tree.c:1104
#3  intel_miptree_copy_teximage (brw=brw@entry=0x7ffff3e56038,
intelImage=0xe38090, dst_mt=0xe6abf0, invalidate=invalidate@entry=false) at
intel_mipmap_tree.c:1132
#4  0x00007ffff414c41c in intel_finalize_mipmap_tree
(brw=brw@entry=0x7ffff3e56038, unit=<optimized out>) at
intel_tex_validate.c:157
#5  0x00007ffff41bba69 in brw_validate_textures (brw=brw@entry=0x7ffff3e56038)
at brw_tex.c:54
#6  0x00007ffff4170303 in brw_try_draw_prims (indirect=<optimized out>,
max_index=3, min_index=0, ib=0x0, nr_prims=1, prims=0x7fffffffd500,
arrays=0x85c180, ctx=0x7ffff3e56038)
    at brw_draw.c:418
#7  brw_draw_prims (ctx=0x7ffff3e56038, prims=0x7fffffffd500, nr_prims=1,
ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3,
unused_tfb_object=0x0, indirect=0x0)
    at brw_draw.c:580
#8  0x00007ffff3fc4382 in vbo_draw_arrays (ctx=0x7ffff3e56038,
mode=mode@entry=6, start=start@entry=0, count=count@entry=4,
numInstances=numInstances@entry=1,
    baseInstance=baseInstance@entry=0) at vbo/vbo_exec_array.c:667
#9  0x00007ffff3fc44a1 in vbo_exec_DrawArrays (mode=mode@entry=6,
start=start@entry=0, count=count@entry=4) at vbo/vbo_exec_array.c:819
#10 0x00007ffff3fc5fc5 in _mesa_DrawArrays (mode=mode@entry=6,
first=first@entry=0, count=count@entry=4) at vbo/vbo_exec_array.c:1890
#11 0x00007ffff404fbd1 in blitframebuffer_texture
(ctx=ctx@entry=0x7ffff3e56038, srcX0=srcX0@entry=0, srcY0=srcY0@entry=0,
srcX1=srcX1@entry=256, srcY1=srcY1@entry=256,
    dstX0=dstX0@entry=0, dstY0=dstY0@entry=0, dstX1=dstX1@entry=256,
dstY1=dstY1@entry=256, filter=filter@entry=9728, flipX=flipX@entry=1,
flipY=flipY@entry=1,
    glsl_version=glsl_version@entry=1 '\001', do_depth=do_depth@entry=1 '\001')
at drivers/common/meta_blit.c:575
#12 0x00007ffff40503de in _mesa_meta_BlitFramebuffer (ctx=0x7ffff3e56038,
srcX0=0, srcY0=0, srcX1=256, srcY1=256, dstX0=0, dstY0=0, dstX1=256, dstY1=256,
mask=256, filter=9728)
    at drivers/common/meta_blit.c:660
#13 0x00007ffff3ed67af in _mesa_BlitFramebuffer (srcX0=srcX0@entry=0,
srcY0=srcY0@entry=0, srcX1=256, srcY1=256, dstX0=dstX0@entry=0,
dstY0=dstY0@entry=0, dstX1=256,
    dstY1=256, mask=mask@entry=256, filter=filter@entry=9728) at
main/blit.c:509
#14 0x00007ffff41ac5e7 in brw_meta_updownsample (brw=brw@entry=0x7ffff3e56038,
src_mt=src_mt@entry=0xd57780, dst_mt=dst_mt@entry=0xe0fe30) at
brw_meta_updownsample.c:119
#15 0x00007ffff41420d5 in intel_miptree_updownsample (brw=0x7ffff3e56038,
src=0xd57780, dst=0xe0fe30) at intel_mipmap_tree.c:1569
#16 0x00007ffff41404f3 in intel_renderbuffer_downsample
(brw=brw@entry=0x7ffff3e56038, irb=irb@entry=0xd67900) at intel_fbo.c:95
#17 0x00007ffff41405eb in intel_map_renderbuffer (ctx=0x7ffff3e56038,
rb=0xd67900, x=0, y=0, w=<optimized out>, h=256, mode=1,
out_map=0x7fffffffdca8,
    out_stride=0x7fffffffdcc0) at intel_fbo.c:167
#18 0x00007ffff40045b0 in blit_nearest (buffer=1024, dstY1=<optimized out>,
dstX1=<optimized out>, dstY0=0, dstX0=<optimized out>, srcY1=<optimized out>,
    srcX1=<optimized out>, srcY0=0, srcX0=<optimized out>, ctx=0x7ffff3e56038)
at swrast/s_blit.c:279
#19 _swrast_BlitFramebuffer (ctx=ctx@entry=0x7ffff3e56038, srcX0=srcX0@entry=0,
srcY0=srcY0@entry=0, srcX1=srcX1@entry=256, srcY1=srcY1@entry=256,
dstX0=dstX0@entry=0,
    dstY0=dstY0@entry=0, dstX1=dstX1@entry=256, dstY1=dstY1@entry=256,
mask=mask@entry=1024, filter=filter@entry=9728) at swrast/s_blit.c:787
#20 0x00007ffff404fec0 in _mesa_meta_BlitFramebuffer (ctx=0x7ffff3e56038,
srcX0=0, srcY0=0, srcX1=256, srcY1=256, dstX0=0, dstY0=0, dstX1=256, dstY1=256,
mask=1024,
    filter=9728) at drivers/common/meta_blit.c:802
#21 0x00007ffff3ed67af in _mesa_BlitFramebuffer (srcX0=0, srcY0=0, srcX1=256,
srcY1=256, dstX0=<optimized out>, dstY0=<optimized out>, dstX1=256, dstY1=256,
mask=1024,
    filter=9728) at main/blit.c:509
#22 0x00007ffff7d0fc23 in stub_glBlitFramebuffer (srcX0=0, srcY0=0, srcX1=256,
srcY1=256, dstX0=0, dstY0=0, dstX1=256, dstY1=256, mask=1024, filter=9728)
    at /GFX/Test/Piglit/piglit/tests/util/generated_dispatch.c:1724
#23 0x0000000000404993 in piglit_display () at
/GFX/Test/Piglit/piglit/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp:143
#24 0x00007ffff7d09484 in run_test (gl_fw=0x607010, argc=3,
argv=0x7fffffffe278) at
/GFX/Test/Piglit/piglit/tests/util/piglit-framework-gl/piglit_fbo_framework.c:52
#25 0x00007ffff7d07127 in piglit_gl_test_run (argc=3, argv=0x7fffffffe278,
config=0x7fffffffe140) at
/GFX/Test/Piglit/piglit/tests/util/piglit-framework-gl.c:191
#26 0x000000000040447d in main (argc=3, argv=0x7fffffffe278) at
/GFX/Test/Piglit/piglit/tests/spec/ext_framebuffer_multisample/multisample-blit.cpp:50

Reproduce steps:
----------------------------
1. xinit
2. ./bin/ext_framebuffer_multisample-multisample-blit 2 stencil -fbo -auto</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>