From 6f66a7f0e9b71471c6412d51a8eae162160f49a4 Mon Sep 17 00:00:00 2001 From: floppyhammer Date: Tue, 29 Mar 2022 11:14:31 +0800 Subject: [PATCH] Don't use hardcoded bin workgroup size --- renderer/src/gpu/d3d11/renderer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/src/gpu/d3d11/renderer.rs b/renderer/src/gpu/d3d11/renderer.rs index fe7414b3..6fdc1c46 100644 --- a/renderer/src/gpu/d3d11/renderer.rs +++ b/renderer/src/gpu/d3d11/renderer.rs @@ -12,7 +12,7 @@ //! //! This renderer supports OpenGL at least 4.3, OpenGL ES at least 3.1, and Metal of any version. -use crate::gpu::d3d11::shaders::{BOUND_WORKGROUP_SIZE, DICE_WORKGROUP_SIZE}; +use crate::gpu::d3d11::shaders::{BOUND_WORKGROUP_SIZE, DICE_WORKGROUP_SIZE, BIN_WORKGROUP_SIZE}; use crate::gpu::d3d11::shaders::{PROPAGATE_WORKGROUP_SIZE, ProgramsD3D11, SORT_WORKGROUP_SIZE}; use crate::gpu::perf::TimeCategory; use crate::gpu::renderer::{FramebufferFlags, RendererCore}; @@ -186,7 +186,7 @@ impl RendererD3D11 where D: Device { &core.options); let compute_dimensions = ComputeDimensions { - x: (microlines_storage.count + 63) / 64, + x: (microlines_storage.count + BIN_WORKGROUP_SIZE - 1) / BIN_WORKGROUP_SIZE, y: 1, z: 1, };