From 1117976751f54a82104928bd18c6bfc1e9af7158 Mon Sep 17 00:00:00 2001 From: Preston Hamlin Date: Thu, 17 Jun 2021 00:54:16 -0400 Subject: [PATCH] Fix atomics resource declaration issue Resources used as raw RWByteAddressBuffer but created as structured could see conflicting allocation and stride values, resulting in OOB access in some configurations. --- tools/clang/test/HLSL/ShaderOpArith.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/clang/test/HLSL/ShaderOpArith.xml b/tools/clang/test/HLSL/ShaderOpArith.xml index 1b1c9fb0ed..934777250d 100644 --- a/tools/clang/test/HLSL/ShaderOpArith.xml +++ b/tools/clang/test/HLSL/ShaderOpArith.xml @@ -1774,12 +1774,12 @@ - { 0I, 0I, 99999999I, 99999999I, 0I, 0I, -1I, -1I, 0I, 0I, 0I, 0I, 42I, 42I, 42I, 42I } - @@ -1852,10 +1852,10 @@ NumElements="8" StructureByteStride="72" /> - - + + @@ -2322,7 +2322,7 @@ - - +