Work count X is unrelated to the local size here

This commit is contained in:
FireNX70 2024-06-13 00:46:05 +02:00
parent f097cc3b4e
commit 9c87d9998f

View File

@ -962,7 +962,7 @@ void ComputeRenderer::RenderFrame(GPU& gpu)
// bin polygons // bin polygons
glUseProgram(ShaderBinCombined); glUseProgram(ShaderBinCombined);
glDispatchCompute(((gpu.GPU3D.RenderNumPolygons + CoarseTileArea - 1) / CoarseTileArea), ScreenWidth/CoarseTileW, ScreenHeight/CoarseTileH); glDispatchCompute(((gpu.GPU3D.RenderNumPolygons + 31) / 32), ScreenWidth/CoarseTileW, ScreenHeight/CoarseTileH);
glMemoryBarrier(GL_SHADER_STORAGE_BARRIER_BIT); glMemoryBarrier(GL_SHADER_STORAGE_BARRIER_BIT);
// calculate list offsets // calculate list offsets