Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Feb 13, 2025
1 parent d8114f0 commit 3096bcf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions renderdoc/driver/vulkan/wrappers/vk_cmd_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
RDOC_DEBUG_CONFIG(
bool, Vulkan_Debug_VerboseCommandRecording, false,
"Add verbose logging around recording and submission of command buffers in vulkan.");
RDOC_EXTERN_CONFIG(bool, Vulkan_Hack_DisableRPRobustness);
RDOC_EXTERN_CONFIG(bool, Vulkan_Hack_DisableRPNormalisation);

static rdcstr ToHumanStr(const VkAttachmentLoadOp &el)
{
Expand Down Expand Up @@ -785,7 +785,7 @@ void WrappedVulkan::ApplyRPStoreDiscards(VkCommandBuffer commandBuffer, VkRect2D

VkImageLayout layout = rpinfo.attachments[i].finalLayout;

if(Vulkan_Hack_DisableRPRobustness())
if(Vulkan_Hack_DisableRPNormalisation())
layout = VK_IMAGE_LAYOUT_UNDEFINED;

if(IsStencilFormat(viewInfo.format))
Expand Down Expand Up @@ -2350,7 +2350,7 @@ bool WrappedVulkan::Serialise_vkCmdEndRenderPass(SerialiserType &ser, VkCommandB

ResourceId currentRP = GetCmdRenderState().GetRenderPass();

if(Vulkan_Hack_DisableRPRobustness() && !m_FeedbackRPs.contains(currentRP))
if(Vulkan_Hack_DisableRPNormalisation() && !m_FeedbackRPs.contains(currentRP))
{
ApplyRPStoreDiscards(commandBuffer, GetCmdRenderState().renderArea, currentRP,
GetCmdRenderState().GetFramebufferAttachments());
Expand Down Expand Up @@ -3014,7 +3014,7 @@ bool WrappedVulkan::Serialise_vkCmdEndRenderPass2(SerialiserType &ser, VkCommand
}

ResourceId currentRP = GetCmdRenderState().GetRenderPass();
if(Vulkan_Hack_DisableRPRobustness() && !m_FeedbackRPs.contains(currentRP))
if(Vulkan_Hack_DisableRPNormalisation() && !m_FeedbackRPs.contains(currentRP))
{
ApplyRPStoreDiscards(commandBuffer, GetCmdRenderState().renderArea, currentRP,
GetCmdRenderState().GetFramebufferAttachments());
Expand Down Expand Up @@ -7314,7 +7314,7 @@ bool WrappedVulkan::Serialise_vkCmdBeginRendering(SerialiserType &ser, VkCommand
// effects of that are never user-visible.
if(m_ReplayOptions.optimisation != ReplayOptimisationLevel::Fastest)
{
if(Vulkan_Hack_DisableRPRobustness())
if(Vulkan_Hack_DisableRPNormalisation())
{
static bool warned = false;

Expand Down Expand Up @@ -7671,7 +7671,7 @@ bool WrappedVulkan::Serialise_vkCmdEndRendering(SerialiserType &ser, VkCommandBu
m_BakedCmdBufferInfo[m_LastCmdBufferID].renderPassOpen = false;

// only do discards when not suspending!
if(Vulkan_Hack_DisableRPRobustness() && !suspending)
if(Vulkan_Hack_DisableRPNormalisation() && !suspending)
{
rdcarray<VkRenderingAttachmentInfo> dynAtts = renderstate.dynamicRendering.color;
dynAtts.push_back(renderstate.dynamicRendering.depth);
Expand Down

0 comments on commit 3096bcf

Please sign in to comment.