summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-05-10 17:32:09 -0700
committerGitHub <noreply@github.com>2024-05-10 17:32:09 -0700
commit86a9da1573e1eea62fbaeddc97521f2b97ebc255 (patch)
tree7e830978ae22b7451df8a022ca240ead384d233f /tests/cross-compile
parent1dcd814f5038229703e52841b1b0304c22bffb73 (diff)
Fix race-condition and visual artifacts issues (#4152)
* Fix race-condition and visual artifacts issues In PerformanceProfiler::getProfiler() we return a static object for the profiler implementation, this is not thread-safe, so change it to thead_local. There is still some visual artifacts when using slang as the shading language. We don't know the root cause yet, but found out it's related to our loop inversion algorithm. So stage this feature for now, and turn it into an internal option and default off. We will re-enable it after more investigation on this optimization. File an new issue 4151 to track it. * Add '-loop-inversion' to the few tests
Diffstat (limited to 'tests/cross-compile')
-rw-r--r--tests/cross-compile/loop-attribs.slang4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cross-compile/loop-attribs.slang b/tests/cross-compile/loop-attribs.slang
index 4336698c0..dca3f2331 100644
--- a/tests/cross-compile/loop-attribs.slang
+++ b/tests/cross-compile/loop-attribs.slang
@@ -1,7 +1,7 @@
// loop-attribs.slang
// Test that loop attributes are correctly emitted to the resulting HLSL.
-//TEST:CROSS_COMPILE:-target dxil-assembly -entry main -stage fragment -profile sm_6_0
+//TEST:CROSS_COMPILE:-target dxil-assembly -entry main -stage fragment -profile sm_6_0 -loop-inversion
float4 main() : SV_Target
{
@@ -16,4 +16,4 @@ float4 main() : SV_Target
sum += float(j);
return float4(sum, 0, 0, 0);
-} \ No newline at end of file
+}