lavapipe: SIGSEGV in lower_block_instr
Got this crash while trying to produce a minimal example for a different issue. lvp_sigsegv.zip
Thread 1 "example" received signal SIGSEGV, Segmentation fault.
0x00007fffe9c14385 in lower_block_instr (b=b@entry=0x7fffffffcff0, instr=instr@entry=0xe9cf90, data_cb=data_cb@entry=0xe51bb0) at ../src/gallium/frontends/lavapipe/lvp_lower_vulkan_resource.c:101
101 if (binding->type != VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK)
(gdb) bt
#0 0x00007fffe9c14385 in lower_block_instr (b=b@entry=0x7fffffffcff0, instr=instr@entry=0xe9cf90, data_cb=data_cb@entry=0xe51bb0) at ../src/gallium/frontends/lavapipe/lvp_lower_vulkan_resource.c:101
#1 0x00007fffe9cd2f8d in nir_function_impl_lower_instructions (impl=0xe9aca0, filter=0x7fffe9c14250 <lower_uniform_block_access>, lower=0x7fffe9c142f0 <lower_block_instr>, cb_data=0xe51bb0) at ../src/compiler/nir/nir.c:2303
#2 0x00007fffe9cd352f in nir_shader_lower_instructions (shader=shader@entry=0x4513f0, filter=filter@entry=0x7fffe9c14250 <lower_uniform_block_access>, lower=lower@entry=0x7fffe9c142f0 <lower_block_instr>, cb_data=cb_data@entry=0xe51bb0)
at ../src/compiler/nir/nir.c:2361
#3 0x00007fffe9c15ad9 in lvp_lower_pipeline_layout (device=<optimized out>, layout=0xe51bb0, shader=0x4513f0) at ../src/gallium/frontends/lavapipe/lvp_lower_vulkan_resource.c:366
#4 0x00007fffe9c1b90a in lvp_shader_compile_to_ir (pipeline=0x45b840, sinfo=<optimized out>) at ../src/gallium/frontends/lavapipe/lvp_pipeline.c:1009
#5 0x00007fffe9c1de77 in lvp_graphics_pipeline_init (pipeline=pipeline@entry=0x45b840, device=device@entry=0xb2bf20, pCreateInfo=pCreateInfo@entry=0xa42518, cache=0x0) at ../src/gallium/frontends/lavapipe/lvp_pipeline.c:1363
#6 0x00007fffe9c1e8fb in lvp_graphics_pipeline_create (pPipeline=<optimized out>, pCreateInfo=0xa42518, _cache=<optimized out>, _device=0xb2bf20) at ../src/gallium/frontends/lavapipe/lvp_pipeline.c:1501
#7 lvp_CreateGraphicsPipelines (_device=0xb2bf20, pipelineCache=<optimized out>, count=<optimized out>, pCreateInfos=<optimized out>, pAllocator=<optimized out>, pPipelines=<optimized out>)
at ../src/gallium/frontends/lavapipe/lvp_pipeline.c:1533
#8 0x00007fffe2f09866 in DispatchCreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) () from /lib64/libVkLayer_khronos_validation.so
#9 0x00007fffe2e81e10 in vulkan_layer_chassis::CreateGraphicsPipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkGraphicsPipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**) ()
from /lib64/libVkLayer_khronos_validation.so
#10 0x0000000000405880 in HelloTriangleApplication::createGraphicsPipeline() ()
#11 0x0000000000403c96 in HelloTriangleApplication::initVulkan() ()
#12 0x0000000000403baa in HelloTriangleApplication::run() ()
#13 0x00000000004037b3 in main ()
Does not crash in radv.