Re: [PATCH 7/8] d3d11/tests: Add test for SM4 breakc instruction.
25 May
2016
25 May
'16
11:58 a.m.
On 25 May 2016 at 10:51, Józef Kucia <jkucia(a)codeweavers.com> wrote:
+ static const DWORD ps_breakc_nz_code[] = + { +#if 0 + uint bits; + + float4 main() : SV_TARGET + { + uint counter = 0; + + for (uint i = 0; i < 255; ++i) + ++counter; + + if (counter == 255) + return float4(0.0f, 1.0f, 0.0f, 1.0f); + else + return float4(1.0f, 0.0f, 0.0f, 1.0f); + } +#endif It's pretty minor, but "bits" is unused. I'll also note that a sufficiently smart compiler could optimise the shader down to "return float4(0.0f, 1.0f, 0.0f, 1.0f);", although clearly the current version hasn't.
3490
Age (days ago)
3490
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet