1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Fix clear compute shaders for 2D array views

The Z component is not part of the image extent. Fixes #598.
This commit is contained in:
Philip Rebohle 2018-08-26 20:08:16 +02:00
parent 0704b044a9
commit 08a9963734
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xyz, u_info.dst_extent.xyz))) {
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy))) {
imageStore(dst,
ivec3(u_info.dst_offset.xy + thread_id.xy, thread_id.z),
u_info.clear_value);

View File

@ -18,7 +18,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xyz, u_info.dst_extent.xyz))) {
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy))) {
imageStore(dst,
ivec3(u_info.dst_offset.xy + thread_id.xy, thread_id.z),
u_info.clear_value);