Skip to content
Snippets Groups Projects
Commit bff9068a authored by Francisco Casas's avatar Francisco Casas Committed by Henri Verbeet
Browse files

tests: Add a hard test for copy-propagation invalidation.

This test is currently miscompiling on SM4 because
copy_propagation_invalidate_variable_from_deref_recurse() is not always
invalidating the right components.
parent a87b1efb
No related branches found
No related tags found
No related merge requests found
......@@ -205,3 +205,21 @@ float4 main() : sv_target
return 0;
}
[pixel shader todo(sm<4)]
float a;
float4 main() : sv_target
{
float arr[2][2] = {1, 2, 3, 4};
if (a > 0)
arr[1][1] = 5;
return float4(arr[0][0], arr[0][1], arr[1][0], arr[1][1]);
}
[test]
uniform 0 float 11.0
todo(sm<4) draw quad
todo(sm<6) probe (0, 0) rgba(1, 2, 3, 5)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment