Closed llandwerlin-intel closed 1 year ago
Do you have any information about what kind of pipeline is currently bound when the crash happens?
We bind descriptor sets with the same pipeline layouts that are used for pipeline compilation, so unless we somehow successfully create a pipeline with a NULL
layout without crashing the driver I can't really see a universe in which we would run into this situation.
With pipeline libraries you can omit the layout when doing the link (without link optimization).
So it's possible you can end up in such situation.
But driver will need the layout at bind time I think (at least Anv) to make sense of the dynamic offsets given to vkCmdBindDescriptorSets
Hm, again, not sure how we could run into this. We always explicitly assign a pipeline layout with INDEPENDENT_SET_BITS
to GPL pipelines, and we unconditionally create one such layout in our pipeline layout abstraction if GPL is supported:
This cannot spuriously fail either since canUseGraphicsPipelineLibrary()
only checks enabled device features and m_layout.getStages()
is hard-coded to VK_SHADER_STAGE_ALL_GRAPHICS
for linked pipelines specifically.
So, whatever is going on is really weird, and I cannot reproduce it on my end.
The user mentioned they were using a patch on top dxvk. I had a quick look but didn't notice stuff related to layouts.
Maybe that could be why?
@llandwerlin-intel Do you agree that like the mesa issue this one seems closable?
@llandwerlin-intel Do you agree that like the mesa issue this one seems closable?
Yeah, it seems like a fairly specific setup. We had nobody else report the same issue.
We have a user of the Intel/Mesa Vulkan driver reporting a crash while playing CSGO.
The user provided a backtrace :
It shows the
vkCmdBindDescriptorSets
entrypoint is called with a NULL pipeline layout which according to the specification is not a valid usage :Software information
Game : CSGO
System information
Apitrace file(s)
None
Log files
None, additional information can also be found on the Mesa issue : https://gitlab.freedesktop.org/mesa/mesa/-/issues/9412