[Current thread is 1 (Thread 0x7fdd2af61c00 (LWP 15809))] (gdb) bt #0 0x00007fdd2af9f82f in raise () from /usr/lib/libc.so.6 #1 0x00007fdd2af8a672 in abort () from /usr/lib/libc.so.6 #2 0x00007fdd2ac95e0b in validate_function_impl (impl=0x55e80031e770, state=0x7fffc689f370) at ../src/compiler/nir/nir_validate.c:1152 #3 0x00007fdd2ac95e73 in validate_function (func=0x55e80031e050, state=0x7fffc689f370) at ../src/compiler/nir/nir_validate.c:1161 #4 0x00007fdd2ac963c5 in nir_validate_shader (shader=0x55e80031f7d0, when=0x7fdd2ad531c3 "after nir_opt_if") at ../src/compiler/nir/nir_validate.c:1268 #5 0x00007fdd2aaa7db0 in brw_nir_optimize (nir=0x55e80031f7d0, compiler=0x55e80011a220, is_scalar=true, allow_copies=true) at ../src/intel/compiler/brw_nir.c:636 #6 0x00007fdd2aaa8f4d in brw_preprocess_nir (compiler=0x55e80011a220, nir=0x55e80031f7d0, softfp64=0x0) at ../src/intel/compiler/brw_nir.c:736 #7 0x00007fdd2a8d7595 in anv_shader_compile_to_nir (device=0x55e8002fd580, mem_ctx=0x55e80030d060, module=0x55e800313800, entrypoint_name=0x55e7fe86f8bd "main", stage=MESA_SHADER_FRAGMENT, spec_info=0x0) at ../src/intel/vulkan/anv_pipeline.c:281 #8 0x00007fdd2a8d7f42 in anv_pipeline_stage_get_nir (pipeline=0x55e800319360, cache=0x55e8002ff248, mem_ctx=0x55e80030d060, stage=0x7fffc68a88b0) at ../src/intel/vulkan/anv_pipeline.c:581 #9 0x00007fdd2a8da50f in anv_pipeline_compile_graphics (pipeline=0x55e800319360, cache=0x55e8002ff248, info=0x55e800122418) at ../src/intel/vulkan/anv_pipeline.c:1155 #10 0x00007fdd2a8dc1a3 in anv_pipeline_init (pipeline=0x55e800319360, device=0x55e8002fd580, cache=0x55e8002ff248, pCreateInfo=0x55e800122418, alloc=0x55e8002fd588) at ../src/intel/vulkan/anv_pipeline.c:1701 #11 0x00007fdd2a9b46e0 in gen9_graphics_pipeline_create (_device=0x55e8002fd580, cache=0x55e8002ff248, pCreateInfo=0x55e800122418, pAllocator=0x0, pPipeline=0x7fffc68ad940) at ../src/intel/vulkan/genX_pipeline.c:2016 #12 0x00007fdd2a9b50ce in gen9_CreateGraphicsPipelines (_device=0x55e8002fd580, pipelineCache=0x0, count=1, pCreateInfos=0x55e800122418, pAllocator=0x0, pPipelines=0x7fffc68ad940) at ../src/intel/vulkan/genX_pipeline.c:2252 #13 0x00007fdd29957215 in DispatchCreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) () from /home/den/repository/vulkansdk-linux-x86_64-1.1.108.0/1.1.108.0/x86_64/lib/libVkLayer_khronos_validation.so #14 0x00007fdd298fc2c3 in vulkan_layer_chassis::CreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) () from /home/den/repository/vulkansdk-linux-x86_64-1.1.108.0/1.1.108.0/x86_64/lib/libVkLayer_khronos_validation.so #15 0x000055e7fe740a3f in amber::vulkan::Device::::operator()(VkDevice, VkPipelineCache, uint32_t, const VkGraphicsPipelineCreateInfo *, const VkAllocationCallbacks *, VkPipeline *) const (__closure=0x55e80023cea8, device=0x55e8002fd580, pipelineCache=0x0, createInfoCount=1, pCreateInfos=0x7fffc68ad7f0, pAllocator=0x0, pPipelines=0x7fffc68ad940) at ./vk-wrappers.inc:1016 #16 0x000055e7fe75aa95 in std::_Function_handler >::_M_invoke(const std::_Any_data &, VkDevice_T *&&, VkPipelineCache_T *&&, unsigned int &&, const VkGraphicsPipelineCreateInfo *&&, const VkAllocationCallbacks *&&, VkPipeline_T **&&) (__functor=..., __args#0=@0x7fffc68ad4c0: 0x55e8002fd580, __args#1=@0x7fffc68ad4b8: 0x0, __args#2=@0x7fffc68ad4b4: 1, __args#3=@0x7fffc68ad4a8: 0x7fffc68ad7f0, __args#4=@0x7fffc68ad4a0: 0x0, __args#5=@0x7fffc68ad510: 0x7fffc68ad940) at /usr/include/c++/8.3.0/bits/std_function.h:282 #17 0x000055e7fe72767f in std::function::operator()(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) const (this=0x55e80023cea8, __args#0=0x55e8002fd580, __args#1=0x0, __args#2=1, __args#3=0x7fffc68ad7f0, __args#4=0x0, __args#5=0x7fffc68ad940) at /usr/include/c++/8.3.0/bits/std_function.h:687 #18 0x000055e7fe72519a in amber::vulkan::GraphicsPipeline::CreateVkGraphicsPipeline (this=0x55e7ffec94e0, pipeline_data=0x7fffc68adb10, topology=VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, vertex_buffer=0x55e800309a50, pipeline_layout=@0x7fffc68ad938: 0x12, pipeline=0x7fffc68ad940) at ../../src/vulkan/graphics_pipeline.cc:672 #19 0x000055e7fe725ec5 in amber::vulkan::GraphicsPipeline::Draw (this=0x55e7ffec94e0, command=0x7fffc68adaf0, vertex_buffer=0x55e800309a50) at ../../src/vulkan/graphics_pipeline.cc:830 #20 0x000055e7fe718c09 in amber::vulkan::EngineVulkan::DoDrawRect (this=0x55e80023c540, command=0x55e7ffec7270) at ../../src/vulkan/engine_vulkan.cc:417 #21 0x000055e7fe1c2204 in amber::Executor::ExecuteCommand (this=0x7fffc68ade67, engine=0x55e80023c540, cmd=0x55e7ffec7270) at ../../src/executor.cc:124 #22 0x000055e7fe1c1cbe in amber::Executor::Execute (this=0x7fffc68ade67, engine=0x55e80023c540, script=0x55e7ffec5e60, delegate=0x7fffc68ae0c0, shader_map=std::map with 0 elements, executionType=amber::ExecutionType::kExecute) at ../../src/executor.cc:77 #23 0x000055e7fe1978d1 in amber::Amber::ExecuteWithShaderData (this=0x7fffc68ae016, recipe=0x55e7ffec5e20, opts=0x7fffc68ae2a0, shader_data=std::map with 0 elements) at ../../src/amber.cc:174 #24 0x000055e7fe197756 in amber::Amber::Execute (this=0x7fffc68ae016, recipe=0x55e7ffec5e20, opts=0x7fffc68ae2a0) at ../../src/amber.cc:157 #25 0x000055e7fe181af7 in main (argc=2, argv=0x7fffc68ae6e8) at ../../samples/amber.cc:410