@@ -716,7 +716,7 @@ static int normalize_dzpix(int dz)
716
716
else if (dz == 0 )
717
717
return 1 ;
718
718
719
- unsigned bit = 31 - leading_zeroes (dz);
719
+ unsigned bit = 31 - Util:: leading_zeroes (dz);
720
720
return 1 << (bit + 1 );
721
721
}
722
722
@@ -1680,7 +1680,7 @@ void Renderer::submit_span_setup_jobs(Vulkan::CommandBuffer &cmd, bool upscale)
1680
1680
cmd.set_buffer_view (1 , 0 , *instance.gpu .span_info_jobs_view );
1681
1681
cmd.set_specialization_constant_mask (3 );
1682
1682
cmd.set_specialization_constant (0 , (upscale ? caps.upscaling : 1 ) * ImplementationConstants::DefaultWorkgroupSize);
1683
- cmd.set_specialization_constant (1 , upscale ? trailing_zeroes (caps.upscaling ) : 0u );
1683
+ cmd.set_specialization_constant (1 , upscale ? Util:: trailing_zeroes (caps.upscaling ) : 0u );
1684
1684
1685
1685
Vulkan::QueryPoolHandle begin_ts, end_ts;
1686
1686
if (caps.timestamp >= 2 )
@@ -1780,7 +1780,7 @@ void Renderer::submit_rasterization(Vulkan::CommandBuffer &cmd, Vulkan::Buffer &
1780
1780
if (caps.timestamp >= 2 )
1781
1781
start_ts = cmd.write_timestamp (VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT);
1782
1782
1783
- uint32_t scale_log2_bit = (upscaling ? trailing_zeroes (caps.upscaling ) : 0u ) << RASTERIZATION_UPSCALING_LOG2_BIT_OFFSET;
1783
+ uint32_t scale_log2_bit = (upscaling ? Util:: trailing_zeroes (caps.upscaling ) : 0u ) << RASTERIZATION_UPSCALING_LOG2_BIT_OFFSET;
1784
1784
1785
1785
for (size_t i = 0 ; i < stream.static_raster_state_cache .size (); i++)
1786
1786
{
@@ -1891,7 +1891,7 @@ void Renderer::submit_tile_binning_combined(Vulkan::CommandBuffer &cmd, bool ups
1891
1891
if (supports_subgroup_size_control (32 , subgroup_size))
1892
1892
{
1893
1893
cmd.enable_subgroup_size_control (true );
1894
- cmd.set_subgroup_size_log2 (true , 5 , trailing_zeroes (subgroup_size));
1894
+ cmd.set_subgroup_size_log2 (true , 5 , Util:: trailing_zeroes (subgroup_size));
1895
1895
}
1896
1896
}
1897
1897
else
@@ -2092,7 +2092,7 @@ void Renderer::submit_depth_blend(Vulkan::CommandBuffer &cmd, Vulkan::Buffer &tm
2092
2092
cmd.set_specialization_constant (5 , Limits::MaxPrimitives);
2093
2093
cmd.set_specialization_constant (6 , upscaled ? caps.max_width : Limits::MaxWidth);
2094
2094
cmd.set_specialization_constant (7 , uint32_t (force_write_mask || (!is_host_coherent && !upscaled)) |
2095
- ((upscaled ? trailing_zeroes (caps.upscaling ) : 0u ) << 1u ));
2095
+ ((upscaled ? Util:: trailing_zeroes (caps.upscaling ) : 0u ) << 1u ));
2096
2096
2097
2097
if (upscaled)
2098
2098
cmd.set_storage_buffer (0 , 0 , *upscaling_multisampled_rdram);
0 commit comments