From b037fc8882321486821252e0dc3c13a1465be332 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Fri, 13 Aug 2021 18:47:33 +0200 Subject: [PATCH] [dxvk] Use BitMask helper --- src/dxvk/dxvk_shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_shader.cpp b/src/dxvk/dxvk_shader.cpp index cfe822af1..5bc33e7d6 100644 --- a/src/dxvk/dxvk_shader.cpp +++ b/src/dxvk/dxvk_shader.cpp @@ -185,8 +185,8 @@ namespace dxvk { std::swap(code[m_o1IdxOffset], code[m_o1LocOffset]); // Replace undefined input variables with zero - for (uint32_t u = info.undefinedInputs; u; u &= u - 1) - eliminateInput(spirvCode, bit::tzcnt(u)); + for (uint32_t u : bit::BitMask(info.undefinedInputs)) + eliminateInput(spirvCode, u); return DxvkShaderModule(vkd, this, spirvCode); }