[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 7/8] d3d11/tests: Add test for SM4 breakc instruction.
From:       Henri Verbeet <hverbeet () gmail ! com>
Date:       2016-05-25 11:58:25
Message-ID: CAOsNvwxbLAKnR_n98d5jEcW0PfKKhqYOFo3CZVe7-g2kNW2aUQ () mail ! gmail ! com
[Download RAW message or body]

On 25 May 2016 at 10:51, Józef Kucia <jkucia@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.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic