zink: assert in runtime with Anv & VK_EXT_host_image_copy enabled
Test case 'dEQP-GLES2.functional.shaders.random.texture.vertex.0'..
deqp-gles2: ../src/vulkan/runtime/vk_image.c:404: vk_image_view_init: Assertion `image->create_flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT' failed.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff76428e6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff76268b7 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff76267db in __assert_fail_base (fmt=0x7ffff77c5168 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fffe905b188 "image->create_flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT", file=file@entry=0x7fffe905adc8 "../src/vulkan/runtime/vk_image.c",
line=line@entry=404, function=function@entry=0x7fffe905b7e0 <__PRETTY_FUNCTION__.8> "vk_image_view_init") at ./assert/assert.c:92
#6 0x00007ffff7639206 in __assert_fail (assertion=0x7fffe905b188 "image->create_flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT", file=0x7fffe905adc8 "../src/vulkan/runtime/vk_image.c", line=404, function=0x7fffe905b7e0 <__PRETTY_FUNCTION__.8> "vk_image_view_init")
at ./assert/assert.c:101
#7 0x00007fffe8811785 in vk_image_view_init (device=0x555556208a70, image_view=0x7fffbc0010a0, driver_internal=false, pCreateInfo=0x7fffcedfc630) at ../src/vulkan/runtime/vk_image.c:404
#8 0x00007fffe72ee92c in anv_image_view_init (device=0x555556208a70, iview=0x7fffbc0010a0, pCreateInfo=0x7fffcedfc630, surface_state_stream=0x0) at ../src/intel/vulkan/anv_image.c:3584
#9 0x00007fffe72ef445 in anv_CreateImageView (_device=0x555556208a70, pCreateInfo=0x7fffcedfc630, pAllocator=0x0, pView=0x7fffbc048c90) at ../src/intel/vulkan/anv_image.c:3739
#10 0x00007ffff478dda3 in create_surface (pctx=0x5555560fb900, pres=0x555556569ac0, templ=0x7fffcedfc600, ivci=0x7fffcedfc630, actually=true) at ../src/gallium/drivers/zink/zink_surface.c:205
#11 0x00007ffff478de62 in do_create_surface (pctx=0x5555560fb900, pres=0x555556569ac0, templ=0x7fffcedfc600, ivci=0x7fffcedfc630, hash=3512948729, actually=true) at ../src/gallium/drivers/zink/zink_surface.c:226
#12 0x00007ffff478dff3 in zink_get_surface (ctx=0x5555560fb900, pres=0x555556569ac0, templ=0x7fffcedfc600, ivci=0x7fffcedfc630) at ../src/gallium/drivers/zink/zink_surface.c:253
#13 0x00007ffff47e59fc in zink_create_sampler_view (pctx=0x5555560fb900, pres=0x555556569ac0, state=0x7fffcedfc730) at ../src/gallium/drivers/zink/zink_context.c:1235
#14 0x00007ffff44574e5 in tc_create_sampler_view (_pipe=0x5555564f3980, resource=0x555556569ac0, templ=0x7fffcedfc730) at ../src/gallium/auxiliary/util/u_threaded_context.c:2303
#15 0x00007ffff3aae815 in st_create_texture_sampler_view_from_stobj (st=0x5555564d7cd0, texObj=0x555556569220, format=PIPE_FORMAT_R8G8B8A8_UNORM, glsl130_or_later=false) at ../src/mesa/state_tracker/st_sampler_view.c:491
#16 0x00007ffff3aaec29 in st_get_texture_sampler_view_from_stobj (st=0x5555564d7cd0, texObj=0x555556569220, samp=0x555556569238, glsl130_or_later=false, ignore_srgb_decode=false, get_reference=true) at ../src/mesa/state_tracker/st_sampler_view.c:542
#17 0x00007ffff3f9cff4 in st_update_single_texture (st=0x5555564d7cd0, texUnit=0, glsl130_or_later=false, ignore_srgb_decode=false, get_reference=true) at ../src/mesa/state_tracker/st_atom_texture.c:81
#18 0x00007ffff3f9d1e8 in st_get_sampler_views (st=0x5555564d7cd0, shader_stage=MESA_SHADER_VERTEX, prog=0x7fffbc002f50, sampler_views=0x7fffcedfc9b0) at ../src/mesa/state_tracker/st_atom_texture.c:147
#19 0x00007ffff3f9d984 in update_textures (st=0x5555564d7cd0, shader_stage=MESA_SHADER_VERTEX, prog=0x7fffbc002f50) at ../src/mesa/state_tracker/st_atom_texture.c:286
#20 0x00007ffff3f9da9c in st_update_vertex_textures (st=0x5555564d7cd0) at ../src/mesa/state_tracker/st_atom_texture.c:303
#21 0x00007ffff3a84155 in st_validate_state (st=0x5555564d7cd0, pipeline_state_mask=72057594037927935) at ../src/mesa/state_tracker/st_util.h:131
#22 0x00007ffff3a8428d in st_prepare_draw (ctx=0x7fffe412a010, state_mask=72057594037927935) at ../src/mesa/state_tracker/st_draw.c:90
#23 0x00007ffff3e21592 in _mesa_validated_drawrangeelements (ctx=0x7fffe412a010, index_bo=0x555556cd49f0, mode=4, index_bounds_valid=false, start=0, end=4294967295, count=6, type=5123, indices=0x50, basevertex=0, numInstances=1, baseInstance=0) at ../src/mesa/main/draw.c:1616
#24 0x00007ffff3e22712 in _mesa_DrawElementsUserBufPacked (ptr=0x7fffe412c1d0) at ../src/mesa/main/draw.c:2007
#25 0x00007ffff3ec224e in _mesa_unmarshal_DrawElementsUserBufPacked (ctx=0x7fffe412a010, cmd=0x7fffe412c1d0) at ../src/mesa/main/glthread_draw.c:742
#26 0x00007ffff3a15f23 in glthread_unmarshal_batch (job=0x7fffe412c1a0, gdata=0x0, thread_index=0) at ../src/mesa/main/glthread.c:141
#27 0x00007ffff371206f in util_queue_thread_func (input=0x5555561c06c0) at ../src/util/u_queue.c:309
#28 0x00007ffff3743ead in impl_thrd_routine (p=0x5555564da280) at ../src/c11/impl/threads_posix.c:67
#29 0x00007ffff7697b5a in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:444
#30 0x00007ffff77285fc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
You can use anv: VK_EXT_host_image_copy support (!24276) to repro