!1896 broke ext_image_dma_buf_import piglit tests with radeonsi
E.g. .../piglit/bin/ext_image_dma_buf_import-sample_yuv -fmt=NV12 -auto
:
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f132c8a7380 (LWP 441658))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007f132e2c5535 in __GI_abort () at abort.c:79
#2 0x00007f132e2c540f in __assert_fail_base (fmt=0x7f132e4276e0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f132c221346 "bytes > 0", file=0x7f132c22131a "../src/util/format/u_format.h", line=818,
function=<optimized out>) at assert.c:92
#3 0x00007f132e2d2b92 in __GI___assert_fail (assertion=assertion@entry=0x7f132c221346 "bytes > 0", file=file@entry=0x7f132c22131a "../src/util/format/u_format.h", line=line@entry=818,
function=function@entry=0x7f132c284bb0 <__PRETTY_FUNCTION__.38911> "util_format_get_blocksize") at assert.c:101
#4 0x00007f132b9e93c3 in util_format_get_blocksize (format=<optimized out>) at ../src/util/format/u_format.h:812
#5 0x00007f132b9e9a0e in util_format_get_blocksize (format=<optimized out>) at ../src/gallium/drivers/radeonsi/si_texture.c:284
#6 si_init_surface (sscreen=sscreen@entry=0x55bba28b1e80, surface=surface@entry=0x7ffc2a3ef160, ptex=ptex@entry=0x7ffc2a3ef690, array_mode=RADEON_SURF_MODE_LINEAR_ALIGNED, pitch_in_bytes_override=256,
is_imported=is_imported@entry=true, is_scanout=false, is_flushed_depth=false, tc_compatible_htile=false) at ../src/gallium/drivers/radeonsi/si_texture.c:250
#7 0x00007f132b9edf11 in si_texture_from_winsys_buffer (sscreen=sscreen@entry=0x55bba28b1e80, templ=templ@entry=0x7ffc2a3ef690, buf=0x55bba29c7f70, stride=<optimized out>, offset=1024, usage=usage@entry=2,
dedicated=<optimized out>) at ../src/gallium/drivers/radeonsi/si_texture.c:1786
#8 0x00007f132b9ee55e in si_texture_from_handle (screen=0x55bba28b1e80, templ=0x7ffc2a3ef690, whandle=0x7ffc2a3ef748, usage=2) at ../src/gallium/drivers/radeonsi/si_texture.c:1840
#9 0x00007f132b7fd665 in dri2_create_image_from_winsys (_screen=_screen@entry=0x55bba28a9240, width=width@entry=4, height=height@entry=4, map=map@entry=0x7f132c222770 <dri2_format_table+2160>, num_handles=num_handles@entry=2,
whandle=0x7ffc2a3ef720, loaderPrivate=0x0) at ../src/gallium/state_trackers/dri/dri2.c:790
#10 0x00007f132b7fda95 in dri2_create_image_from_fd (_screen=0x55bba28a9240, width=4, height=4, fourcc=842094158, modifier=modifier@entry=72057594037927935, fds=0x7ffc2a3ef880, num_fds=2, strides=0x7ffc2a3ef890,
offsets=0x7ffc2a3ef8a0, error=0x7ffc2a3ef87c, loaderPrivate=0x0) at ../src/gallium/state_trackers/dri/dri2.c:931
#11 0x00007f132b7fdb6b in dri2_from_dma_bufs (screen=<optimized out>, width=<optimized out>, height=<optimized out>, fourcc=<optimized out>, fds=<optimized out>, num_fds=<optimized out>, strides=0x7ffc2a3ef890,
offsets=0x7ffc2a3ef8a0, yuv_color_space=__DRI_YUV_COLOR_SPACE_UNDEFINED, sample_range=__DRI_YUV_RANGE_UNDEFINED, horizontal_siting=__DRI_YUV_CHROMA_SITING_UNDEFINED, vertical_siting=__DRI_YUV_CHROMA_SITING_UNDEFINED,
error=0x7ffc2a3ef87c, loaderPrivate=0x0) at ../src/gallium/state_trackers/dri/dri2.c:1440
#12 0x00007f132e686146 in dri2_create_image_dma_buf (disp=disp@entry=0x55bba2874ae0, ctx=ctx@entry=0x0, buffer=buffer@entry=0x0, attr_list=attr_list@entry=0x7ffc2a3efc40) at ../src/egl/drivers/dri2/egl_dri2.c:2667
#13 0x00007f132e686297 in dri2_create_image_khr (drv=<optimized out>, disp=0x55bba2874ae0, ctx=0x0, target=<optimized out>, buffer=0x0, attr_list=0x7ffc2a3efc40) at ../src/egl/drivers/dri2/egl_dri2.c:2921
#14 0x00007f132e67673a in _eglCreateImageCommon (disp=0x55bba2874ae0, ctx=0x0, target=12912, buffer=0x0, attr_list=0x7ffc2a3efc40) at ../src/egl/main/eglapi.c:1747
#15 0x000055bba17f3016 in stub_eglCreateImageKHR (dpy=0x55bba2874ae0, ctx=0x0, target=12912, buffer=0x0, attrib_list=0x7ffc2a3efc40) at tests/spec/ext_image_dma_buf_import/image_common.c:50
#16 0x000055bba17f2d75 in egl_image_for_dma_buf_fd (buf=0x55bba29cd620, fd=11, fourcc=842094158, out_img=0x7ffc2a3efd18) at tests/spec/ext_image_dma_buf_import/sample_common.c:170
#17 0x000055bba17f2e66 in sample_buffer (buf=0x55bba29cd620, fourcc=842094158) at tests/spec/ext_image_dma_buf_import/sample_common.c:206
#18 0x000055bba17f2f5e in dma_buf_create_and_sample_32bpp (w=4, h=4, fourcc=842094158, src=0x55bba17f40e0 <nv12> "2FZn2FZn2FZn2FZnx\202\214\202x\240\214\240") at tests/spec/ext_image_dma_buf_import/sample_common.c:243
#19 0x000055bba17f261e in piglit_display () at tests/spec/ext_image_dma_buf_import/sample_yuv.c:217
#20 0x00007f132e5aa804 in process_next_event (x11_fw=0x55bba285eeb0) at tests/util/piglit-framework-gl/piglit_x11_framework.c:137
#21 0x00007f132e5aa8a7 in enter_event_loop (winsys_fw=0x55bba285eeb0) at tests/util/piglit-framework-gl/piglit_x11_framework.c:153
#22 0x00007f132e5a90d7 in run_test (gl_fw=0x55bba285eeb0, argc=2, argv=0x7ffc2a3f0128) at tests/util/piglit-framework-gl/piglit_winsys_framework.c:88
#23 0x00007f132e598220 in piglit_gl_test_run (argc=2, argv=0x7ffc2a3f0128, config=0x7ffc2a3effe0) at tests/util/piglit-framework-gl.c:229
#24 0x000055bba17f2345 in main (argc=2, argv=0x7ffc2a3f0128) at tests/spec/ext_image_dma_buf_import/sample_yuv.c:41
(gdb) frame 6
#6 si_init_surface (sscreen=sscreen@entry=0x55bba28b1e80, surface=surface@entry=0x7ffc2a3ef160, ptex=ptex@entry=0x7ffc2a3ef690, array_mode=RADEON_SURF_MODE_LINEAR_ALIGNED, pitch_in_bytes_override=256,
is_imported=is_imported@entry=true, is_scanout=false, is_flushed_depth=false, tc_compatible_htile=false) at ../src/gallium/drivers/radeonsi/si_texture.c:250
250 bpe = util_format_get_blocksize(ptex->format);
(gdb) p ptex->format
$1 = PIPE_FORMAT_NV12