[PATCH 7/8] d3d11/tests: Add test for SM4 breakc instruction.
Henri Verbeet
hverbeet at gmail.com
Wed May 25 06:58:25 CDT 2016
On 25 May 2016 at 10:51, Józef Kucia <jkucia at 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.
More information about the wine-devel
mailing list