From b91bcdbbca0ef3ba0896cd1d72fcda86493870bf Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 8 Jun 2019 08:32:09 +0200 Subject: [PATCH] rsx: Apply Clang-Tidy fix "modernize-use-bool-literals" --- rpcs3/Emu/RSX/Common/ProgramStateCache.cpp | 2 +- rpcs3/Emu/RSX/GL/GLGSRender.cpp | 2 +- rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp | 18 +++++++++--------- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/ProgramStateCache.cpp b/rpcs3/Emu/RSX/Common/ProgramStateCache.cpp index 01b83ad5b6..38c6718258 100644 --- a/rpcs3/Emu/RSX/Common/ProgramStateCache.cpp +++ b/rpcs3/Emu/RSX/Common/ProgramStateCache.cpp @@ -75,7 +75,7 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert d3.HEX = instruction->word[3]; // Touch current instruction - result.instruction_mask[current_instrution] = 1; + result.instruction_mask[current_instrution] = true; instruction_range.first = std::min(current_instrution, instruction_range.first); instruction_range.second = std::max(current_instrution, instruction_range.second); diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index 11ff784183..8b1b01d158 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -400,7 +400,7 @@ void GLGSRender::end() std::chrono::time_point draw_start = textures_end; // Optionally do memory synchronization if the texture stage has not yet triggered this - if (1)//g_cfg.video.strict_rendering_mode) + if (true)//g_cfg.video.strict_rendering_mode) { gl_state.enable(GL_FALSE, GL_SCISSOR_TEST); diff --git a/rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp b/rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp index f13bf37ca2..c05f816fd3 100644 --- a/rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp +++ b/rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp @@ -94,15 +94,15 @@ namespace vk rsc.maxCombinedClipAndCullDistances = 8; rsc.maxSamples = 4; - rsc.limits.nonInductiveForLoops = 1; - rsc.limits.whileLoops = 1; - rsc.limits.doWhileLoops = 1; - rsc.limits.generalUniformIndexing = 1; - rsc.limits.generalAttributeMatrixVectorIndexing = 1; - rsc.limits.generalVaryingIndexing = 1; - rsc.limits.generalSamplerIndexing = 1; - rsc.limits.generalVariableIndexing = 1; - rsc.limits.generalConstantMatrixVectorIndexing = 1; + rsc.limits.nonInductiveForLoops = true; + rsc.limits.whileLoops = true; + rsc.limits.doWhileLoops = true; + rsc.limits.generalUniformIndexing = true; + rsc.limits.generalAttributeMatrixVectorIndexing = true; + rsc.limits.generalVaryingIndexing = true; + rsc.limits.generalSamplerIndexing = true; + rsc.limits.generalVariableIndexing = true; + rsc.limits.generalConstantMatrixVectorIndexing = true; } static constexpr std::array, 18> varying_registers = diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index 9da6ab3b1d..a93d6f6fb5 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -1634,7 +1634,7 @@ void VKGSRender::end() update_draw_state(); // Apply write memory barriers - if (1)//g_cfg.video.strict_rendering_mode) + if (true)//g_cfg.video.strict_rendering_mode) { if (ds) ds->write_barrier(*m_current_command_buffer);