glxgears UNASSIGNED-GeneralParameterError-UnrecognizedValue and UNASSIGNED-CoreValidation-Shader-InputNotProduced
AMD Radeon R9 Fury X (FIJI, GFX8)
zink-wip from 2021-08-05 @ b15f08b4
~/vk_layer_settings.txt
:
#khronos_validation.debug_action = VK_DBG_LAYER_ACTION_BREAK
khronos_validation.debug_action = VK_DBG_LAYER_ACTION_LOG_MSG
khronos_validation.report_flags = error
khronos_validation.log_filename = stdout
khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_DEBUG_PRINTF_EXT
#khronos_validation.message_id_filter = 0xde55a405,0x50363c8d,0x880879b9,0xff749c8b
#VUID-VkDeviceCreateInfo-pNext-02830 ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x211e533b
#VUID-VkImageCreateInfo-pNext-pNext ] Object 0: handle = 0x55a489d3f510, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x69dad144
#VUID-VkMemoryAllocateInfo-pNext-pNext ] Object 0: handle = 0x56419c860500, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xda369b0a
khronos_validation.message_id_filter = 0x211e533b,0x69dad144,0xda369b0a
Run 64-bit glxgears with validation layers:
$ VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LAYER_SETTINGS_PATH=/home/user/vk_layer_settings.txt ~/zink-dbg gdb --args glxgears
(gdb) run
...
(various not super important validation errors)
...
WARNING: Some incorrect rendering might occur because the selected Vulkan device (AMD RADV FIJI) doesn't support base Zink requirements: feats.features.alphaToOne line_rast_feats.rectangularLines line_rast_feats.smoothLines line_rast_feats.stippledRectangularLines line_rast_feats.stippledSmoothLines
[New Thread 0x7fffecaf3700 (LWP 279981)]
[New Thread 0x7fffe698a700 (LWP 279982)]
[New Thread 0x7fffe6189700 (LWP 279983)]
[New Thread 0x7fffe5988700 (LWP 279984)]
[New Thread 0x7fffe5187700 (LWP 279985)]
[New Thread 0x7fffe4986700 (LWP 279986)]
[New Thread 0x7fffc7bff700 (LWP 279987)]
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
VUID-VkPipelineRasterizationStateCreateInfo-pNext-pNext(ERROR / SPEC): msgNum: 478338889 - Validation Error: [ VUID-VkPipelineRasterizationStateCreateInfo-pNext-pNext ] Object 0: handle = 0x555555b4c8e0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x1c82df49 | vkCreateGraphicsPipelines: pCreateInfos[0].pRasterizationState->pNext chain includes a structure with unknown VkStructureType (1000254001); Allowed structures are [VkPipelineRasterizationConservativeStateCreateInfoEXT, VkPipelineRasterizationDepthClipStateCreateInfoEXT, VkPipelineRasterizationLineStateCreateInfoEXT, VkPipelineRasterizationStateRasterizationOrderAMD, VkPipelineRasterizationStateStreamCreateInfoEXT]. This error is based on the Valid Usage documentation for version 162 of the Vulkan header. It is possible that you are using a struct from a private extension or an extension that was added to a later version of the Vulkan header, in which case the use of pCreateInfos[0].pRasterizationState->pNext is undefined and may not work correctly with validation enabled The Vulkan spec states: Each pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineRasterizationConservativeStateCreateInfoEXT, VkPipelineRasterizationDepthClipStateCreateInfoEXT, VkPipelineRasterizationLineStateCreateInfoEXT, VkPipelineRasterizationStateRasterizationOrderAMD, or VkPipelineRasterizationStateStreamCreateInfoEXT (https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VUID-VkPipelineRasterizationStateCreateInfo-pNext-pNext)
Objects: 1
[0] 0x555555b4c8e0, type: 3, name: NULL
UNASSIGNED-GeneralParameterError-UnrecognizedValue(ERROR / SPEC): msgNum: -1100021871 - Validation Error: [ UNASSIGNED-GeneralParameterError-UnrecognizedValue ] Object 0: handle = 0x555555b4c8e0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbe6eff91 | vkCreateGraphicsPipelines: value of pCreateInfos[0].pDynamicState->pDynamicStates[18] (1000352000) does not fall within the begin..end range of the core VkDynamicState enumeration tokens and is not an extension added token
Objects: 1
[0] 0x555555b4c8e0, type: 3, name: NULL
UNASSIGNED-GeneralParameterError-UnrecognizedValue(ERROR / SPEC): msgNum: -1100021871 - Validation Error: [ UNASSIGNED-GeneralParameterError-UnrecognizedValue ] Object 0: handle = 0x555555b4c8e0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbe6eff91 | vkCreateGraphicsPipelines: value of pCreateInfos[0].pDynamicState->pDynamicStates[19] (1000377004) does not fall within the begin..end range of the core VkDynamicState enumeration tokens and is not an extension added token
Objects: 1
[0] 0x555555b4c8e0, type: 3, name: NULL
UNASSIGNED-CoreValidation-Shader-InputNotProduced(ERROR / SPEC): msgNum: 602160055 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InputNotProduced ] Object 0: handle = 0x3e000000003e, type = VK_OBJECT_TYPE_SHADER_MODULE; | MessageID = 0x23e43bb7 | Vertex shader consumes input at location 0 but not provided
Objects: 1
[0] 0x3e000000003e, type: 15, name: NULL
VUID-VkGraphicsPipelineCreateInfo-pStages-02097(ERROR / SPEC): msgNum: 59802313 - Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-pStages-02097 ] Object 0: handle = 0x555555b4c8e0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x39082c9 | Invalid Pipeline CreateInfo[0] State: Missing pVertexInputState. The Vulkan spec states: If pStages includes a vertex shader stage, pVertexInputState must be a valid pointer to a valid VkPipelineVertexInputStateCreateInfo structure (https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-pStages-02097)
Objects: 1
[0] 0x555555b4c8e0, type: 3, name: NULL
Thread 1 "glxgears" received signal SIGSEGV, Segmentation fault.
0x00007fffe7444ba3 in CoreChecks::ValidatePipelineVertexDivisors (this=<optimized out>, pipe_state_vec=std::vector of length 1, capacity 1 = {...}, count=1, pipe_cis=<optimized out>)
at ./layers/core_validation.cpp:4689
4689 ./layers/core_validation.cpp: No such file or directory.
(gdb) bt
#0 0x00007fffe7444ba3 in CoreChecks::ValidatePipelineVertexDivisors (this=<optimized out>, pipe_state_vec=std::vector of length 1, capacity 1 = {...}, count=1, pipe_cis=<optimized out>)
at ./layers/core_validation.cpp:4689
#1 0x00007fffe7448d04 in CoreChecks::PreCallValidateCreateGraphicsPipelines (this=0x555555c85180, device=0x555555b4c8e0, pipelineCache=<optimized out>, count=1,
pCreateInfos=0x7fffffffaf70, pAllocator=<optimized out>, pPipelines=0x7fffffffae38, cgpl_state_data=0x7fffffffac00) at ./layers/core_validation.cpp:4796
#2 0x00007fffe72d226b in vulkan_layer_chassis::CreateGraphicsPipelines (device=0x555555b4c8e0, pipelineCache=0x420000000042, createInfoCount=1, pCreateInfos=0x7fffffffaf70,
pAllocator=0x0, pPipelines=0x7fffffffae38) at ./layers/generated/chassis.cpp:561
#3 0x00007ffff655d24e in zink_create_gfx_pipeline (screen=screen@entry=0x55555565e6a0, prog=prog@entry=0x555555f48d70, state=state@entry=0x555555c59d70,
primitive_topology=primitive_topology@entry=VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST) at ../../../src/gallium/drivers/zink/zink_pipeline.c:268
#4 0x00007ffff653c589 in zink_get_gfx_pipeline (ctx=ctx@entry=0x555555c55f70, prog=0x555555f48d70, state=state@entry=0x555555c59d70, mode=mode@entry=PIPE_PRIM_TRIANGLES)
at ../../../src/gallium/drivers/zink/zink_program.c:819
#5 0x00007ffff6513ac6 in update_gfx_pipeline<true> (ctx=ctx@entry=0x555555c55f70, bs=0x555555deeaf0, mode=mode@entry=PIPE_PRIM_TRIANGLES)
at ../../../src/gallium/drivers/zink/zink_draw.cpp:401
#6 0x00007ffff652f596 in zink_draw_vbo<(zink_multidraw)1, (zink_dynamic_state)1, (zink_dynamic_state2)1, (zink_dynamic_vertex_input)1, true> (pctx=0x555555c55f70, dinfo=0x555555e44ab0,
drawid_offset=<optimized out>, dindirect=<optimized out>, draws=<optimized out>, num_draws=<optimized out>) at ../../../src/gallium/drivers/zink/zink_draw.cpp:694
#7 0x00007ffff6186561 in tc_call_draw_single (pipe=0x555555c55f70, call=0x555555e44aa8, last_ptr=<optimized out>) at ../../../src/gallium/auxiliary/util/u_threaded_context.c:3006
#8 0x00007ffff6181103 in tc_batch_execute (job=job@entry=0x555555e44a80, gdata=gdata@entry=0x0, thread_index=thread_index@entry=0)
at ../../../src/gallium/auxiliary/util/u_threaded_context.c:190
#9 0x00007ffff6182def in _tc_sync (tc=tc@entry=0x555555e43660, info=info@entry=0x7ffff67b1768 " read", func=func@entry=0x7ffff67b1898 <__func__.8> "tc_buffer_map")
at ../../../src/gallium/auxiliary/util/u_threaded_context.c:341
#10 0x00007ffff6184cfc in tc_buffer_map (_pipe=0x555555e43660, resource=0x555555efcff0, level=0, usage=1610612737, box=0x7fffffffca50, transfer=0x7fffffffca88)
at ../../../src/gallium/auxiliary/util/u_threaded_context.c:2144
#11 0x00007ffff61d0198 in pipe_buffer_map_range (transfer=0x7fffffffca88, access=1, length=<optimized out>, offset=0, buffer=<optimized out>, pipe=<optimized out>)
at ../../../src/gallium/auxiliary/util/u_inlines.h:373
#12 pipe_buffer_map (transfer=0x7fffffffca88, access=1, buffer=<optimized out>, pipe=<optimized out>) at ../../../src/gallium/auxiliary/util/u_inlines.h:393
#13 util_primconvert_draw_vbo (pc=0x555555ede030, info=0x7fffffffcc80, drawid_offset=0, indirect=<optimized out>, draws=0x7fffffffcc74, num_draws=<optimized out>)
at ../../../src/gallium/auxiliary/indices/u_primconvert.c:176
#14 0x00007ffff618e560 in u_vbuf_draw_vbo (mgr=<optimized out>, info=0x555555f02c10, drawid_offset=0, indirect=0x0, draw=...) at ../../../src/gallium/auxiliary/util/u_vbuf.c:1693
#15 0x00007ffff612861d in cso_multi_draw (cso=cso@entry=0x555555edc030, info=info@entry=0x555555f02c10, drawid_offset=drawid_offset@entry=0, draws=<optimized out>, num_draws=1)
at ../../../src/gallium/auxiliary/cso_cache/cso_context.c:1619
#16 0x00007ffff5ba5560 in st_draw_gallium_multimode (ctx=<optimized out>, info=0x555555f02c10, draws=0x555555efc4d0, mode=0x555555efc8e0 "\b\a\357UUU", num_draws=2)
at ../../../src/mesa/state_tracker/st_draw.c:211
#17 0x00007ffff5dcfc1f in vbo_save_playback_vertex_list (ctx=ctx@entry=0x555555e77050, data=data@entry=0x555555f02c00, copy_to_current=copy_to_current@entry=true)
at ../../../src/mesa/vbo/vbo_save_draw.c:227
#18 0x00007ffff5c7fc5b in execute_list (ctx=ctx@entry=0x555555e77050, list=list@entry=1) at ../../../src/mesa/main/dlist.c:13376
#19 0x00007ffff5c8053c in _mesa_CallList (list=1) at ../../../src/mesa/main/dlist.c:13817
#20 0x00005555555571bc in ?? ()
#21 0x0000555555556c88 in ?? ()
#22 0x00007ffff79a5d0a in __libc_start_main (main=0x555555556410, argc=1, argv=0x7fffffffdad8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>,
stack_end=0x7fffffffdac8) at ../csu/libc-start.c:308
#23 0x0000555555556f0a in ?? ()
(gdb)