Skip to content

Commit

Permalink
Work count X is unrelated to the local size here
Browse files Browse the repository at this point in the history
  • Loading branch information
FireNX70 committed Jun 13, 2024
1 parent f097cc3 commit 9c87d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GPU3D_Compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ void ComputeRenderer::RenderFrame(GPU& gpu)

// bin polygons
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);

// calculate list offsets
Expand Down

0 comments on commit 9c87d99

Please sign in to comment.