[Mesa-dev] [PATCH 4/4] i965: Use ~0 to represent true on all generations.

Ian Romanick idr at freedesktop.org
Thu Dec 4 18:54:33 PST 2014


On 12/04/2014 04:33 PM, Matt Turner wrote:
> On Thu, Dec 4, 2014 at 4:26 PM, Ian Romanick <idr at freedesktop.org> wrote:
>> On 12/04/2014 03:05 PM, Matt Turner wrote:
>>> Jason realized that we could fix the result of the CMP instruction on
>>> Gen <= 5 by doing -(result & 1). Also do the resolves in the vec4
>>> backend before use, rather than when the bool was created. The FS does
>>> this and it saves some unnecessary resolves.
>>>
>>> On Ironlake:
>>
>> No piglit changes on ILK, I assume?
> 
> Non-ILK? Right, no changes.

No, I meant Ironlake.  Since this change is an optimization that only
affects ILK and earlier platforms, I assumed it wouldn't break later
platforms... it shouldn't break the platforms that it's optimizing
either. :)



More information about the mesa-dev mailing list