From cce578d67a224d7da8406192b3285c310ac22d84 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 11 Apr 2018 23:12:55 +0200 Subject: [PATCH] [dxvk] Increase workgroup size for buffer clear shaders --- src/dxvk/shaders/dxvk_clear_buffer_f.comp | 8 ++++---- src/dxvk/shaders/dxvk_clear_buffer_u.comp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dxvk/shaders/dxvk_clear_buffer_f.comp b/src/dxvk/shaders/dxvk_clear_buffer_f.comp index f80ccea0..d682cb40 100644 --- a/src/dxvk/shaders/dxvk_clear_buffer_f.comp +++ b/src/dxvk/shaders/dxvk_clear_buffer_f.comp @@ -1,7 +1,7 @@ #version 450 layout( - local_size_x = 64, + local_size_x = 128, local_size_y = 1, local_size_z = 1) in; @@ -16,11 +16,11 @@ uniform u_info_t { } u_info; void main() { - ivec3 thread_id = ivec3(gl_GlobalInvocationID.x); + int thread_id = int(gl_GlobalInvocationID.x); - if (thread_id.x < u_info.dst_extent.x) { + if (thread_id < u_info.dst_extent.x) { imageStore(dst, - u_info.dst_offset.x + thread_id.x, + u_info.dst_offset.x + thread_id, u_info.clear_value); } } \ No newline at end of file diff --git a/src/dxvk/shaders/dxvk_clear_buffer_u.comp b/src/dxvk/shaders/dxvk_clear_buffer_u.comp index 136694e1..97c1d0b0 100644 --- a/src/dxvk/shaders/dxvk_clear_buffer_u.comp +++ b/src/dxvk/shaders/dxvk_clear_buffer_u.comp @@ -1,7 +1,7 @@ #version 450 layout( - local_size_x = 64, + local_size_x = 128, local_size_y = 1, local_size_z = 1) in; @@ -16,11 +16,11 @@ uniform u_info_t { } u_info; void main() { - ivec3 thread_id = ivec3(gl_GlobalInvocationID.x); + int thread_id = int(gl_GlobalInvocationID.x); - if (thread_id.x < u_info.dst_extent.x) { + if (thread_id < u_info.dst_extent.x) { imageStore(dst, - u_info.dst_offset.x + thread_id.x, + u_info.dst_offset.x + thread_id, u_info.clear_value); } } \ No newline at end of file