1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-23 10:54:14 +01:00

[dxvk] Change debug color for pipelines with side effects

This commit is contained in:
Philip Rebohle 2025-02-14 23:36:38 +01:00
parent e76c71aad0
commit 6ad5ee34e3
2 changed files with 16 additions and 1 deletions

View File

@ -5769,8 +5769,10 @@ namespace dxvk {
}
if (unlikely(m_features.test(DxvkContextFeature::DebugUtils))) {
uint32_t color = getGraphicsPipelineDebugColor();
m_cmd->cmdInsertDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer,
vk::makeLabel(0xa2dcf0, m_state.gp.pipeline->debugName()));
vk::makeLabel(color, m_state.gp.pipeline->debugName()));
}
m_flags.clr(DxvkContextFlag::GpDirtyPipelineState);
@ -5778,6 +5780,17 @@ namespace dxvk {
}
uint32_t DxvkContext::getGraphicsPipelineDebugColor() const {
if (m_state.gp.flags.test(DxvkGraphicsPipelineFlag::HasStorageDescriptors))
return 0xf0a2dc;
if (m_state.gp.flags.test(DxvkGraphicsPipelineFlag::HasTransformFeedback))
return 0xa2f0dc;
return 0xa2dcf0;
}
template<VkPipelineBindPoint BindPoint>
void DxvkContext::resetSpecConstants(
uint32_t newMask) {

View File

@ -1693,6 +1693,8 @@ namespace dxvk {
bool updateGraphicsPipeline();
bool updateGraphicsPipelineState(DxvkGlobalPipelineBarrier srcBarrier);
uint32_t getGraphicsPipelineDebugColor() const;
template<VkPipelineBindPoint BindPoint>
void resetSpecConstants(
uint32_t newMask);