GS/Vulkan: Clear primid texture binding before prepass

Prevents incorrect-state descriptor.
This commit is contained in:
Stenzek 2023-09-05 19:09:00 +10:00 committed by Connor McLaughlin
parent 03abfa9c59
commit 82e6192c05
1 changed files with 3 additions and 0 deletions

View File

@ -5445,6 +5445,9 @@ GSTextureVK* GSDeviceVK::SetupPrimitiveTrackingDATE(GSHWDrawConfig& config)
// image is now filled with either -1 or INT_MAX, so now we can do the prepass
UploadHWDrawVerticesAndIndices(config);
// primid texture will get re-bound, so clear it since we're using push descriptors
PSSetShaderResource(3, m_null_texture.get(), false);
// cut down the configuration for the prepass, we don't need blending or any feedback loop
PipelineSelector& pipe = m_pipeline_selector;
UpdateHWPipelineSelector(config, pipe);