rsx: Apply Clang-Tidy fix "modernize-use-bool-literals"

This commit is contained in:
scribam 2019-06-08 08:32:09 +02:00 committed by kd-11
parent 349e7c8708
commit b91bcdbbca
4 changed files with 12 additions and 12 deletions

View file

@ -75,7 +75,7 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert
d3.HEX = instruction->word[3]; d3.HEX = instruction->word[3];
// Touch current instruction // 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.first = std::min(current_instrution, instruction_range.first);
instruction_range.second = std::max(current_instrution, instruction_range.second); instruction_range.second = std::max(current_instrution, instruction_range.second);

View file

@ -400,7 +400,7 @@ void GLGSRender::end()
std::chrono::time_point<steady_clock> draw_start = textures_end; std::chrono::time_point<steady_clock> draw_start = textures_end;
// Optionally do memory synchronization if the texture stage has not yet triggered this // 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); gl_state.enable(GL_FALSE, GL_SCISSOR_TEST);

View file

@ -94,15 +94,15 @@ namespace vk
rsc.maxCombinedClipAndCullDistances = 8; rsc.maxCombinedClipAndCullDistances = 8;
rsc.maxSamples = 4; rsc.maxSamples = 4;
rsc.limits.nonInductiveForLoops = 1; rsc.limits.nonInductiveForLoops = true;
rsc.limits.whileLoops = 1; rsc.limits.whileLoops = true;
rsc.limits.doWhileLoops = 1; rsc.limits.doWhileLoops = true;
rsc.limits.generalUniformIndexing = 1; rsc.limits.generalUniformIndexing = true;
rsc.limits.generalAttributeMatrixVectorIndexing = 1; rsc.limits.generalAttributeMatrixVectorIndexing = true;
rsc.limits.generalVaryingIndexing = 1; rsc.limits.generalVaryingIndexing = true;
rsc.limits.generalSamplerIndexing = 1; rsc.limits.generalSamplerIndexing = true;
rsc.limits.generalVariableIndexing = 1; rsc.limits.generalVariableIndexing = true;
rsc.limits.generalConstantMatrixVectorIndexing = 1; rsc.limits.generalConstantMatrixVectorIndexing = true;
} }
static constexpr std::array<std::pair<std::string_view, int>, 18> varying_registers = static constexpr std::array<std::pair<std::string_view, int>, 18> varying_registers =

View file

@ -1634,7 +1634,7 @@ void VKGSRender::end()
update_draw_state(); update_draw_state();
// Apply write memory barriers // 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); if (ds) ds->write_barrier(*m_current_command_buffer);