mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
GPU/HW: Fix incorrect range for shader compiling progress
This commit is contained in:
parent
6f5d15d2aa
commit
f7587eaeac
|
@ -655,8 +655,6 @@ bool GPU_HW_D3D11::CompileShaders()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UPDATE_PROGRESS();
|
|
||||||
|
|
||||||
if (m_downsample_mode == GPUDownsampleMode::Adaptive)
|
if (m_downsample_mode == GPUDownsampleMode::Adaptive)
|
||||||
{
|
{
|
||||||
m_downsample_first_pass_pixel_shader =
|
m_downsample_first_pass_pixel_shader =
|
||||||
|
|
|
@ -518,7 +518,7 @@ bool GPU_HW_OpenGL::CompilePrograms()
|
||||||
m_pgxp_depth_buffer, m_supports_dual_source_blend);
|
m_pgxp_depth_buffer, m_supports_dual_source_blend);
|
||||||
|
|
||||||
Common::Timer compile_time;
|
Common::Timer compile_time;
|
||||||
const int progress_total = (4 * 9 * 2 * 2) + (2 * 3) + 6;
|
const int progress_total = (4 * 9 * 2 * 2) + (2 * 3) + 1 + 1 + 1 + 1 + 1 + 1;
|
||||||
int progress_value = 0;
|
int progress_value = 0;
|
||||||
#define UPDATE_PROGRESS() \
|
#define UPDATE_PROGRESS() \
|
||||||
do \
|
do \
|
||||||
|
|
|
@ -840,7 +840,7 @@ bool GPU_HW_Vulkan::CompilePipelines()
|
||||||
m_pgxp_depth_buffer, m_supports_dual_source_blend);
|
m_pgxp_depth_buffer, m_supports_dual_source_blend);
|
||||||
|
|
||||||
Common::Timer compile_time;
|
Common::Timer compile_time;
|
||||||
const int progress_total = 2 + (4 * 9 * 2 * 2) + (2 * 4 * 5 * 9 * 2 * 2) + 1 + 2 + 2 + 2 + 2 + (2 * 3) + 1;
|
const int progress_total = 2 + (4 * 9 * 2 * 2) + (3 * 4 * 5 * 9 * 2 * 2) + 1 + 2 + 2 + 2 + 1 + 1 + (2 * 3) + 1;
|
||||||
int progress_value = 0;
|
int progress_value = 0;
|
||||||
#define UPDATE_PROGRESS() \
|
#define UPDATE_PROGRESS() \
|
||||||
do \
|
do \
|
||||||
|
@ -1176,8 +1176,6 @@ bool GPU_HW_Vulkan::CompilePipelines()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UPDATE_PROGRESS();
|
|
||||||
|
|
||||||
if (m_downsample_mode == GPUDownsampleMode::Adaptive)
|
if (m_downsample_mode == GPUDownsampleMode::Adaptive)
|
||||||
{
|
{
|
||||||
gpbuilder.Clear();
|
gpbuilder.Clear();
|
||||||
|
|
Loading…
Reference in a new issue