[Mesa-stable] [PATCH 3/3] i965: Avoid applying negate to wrong MAD source.
Matt Turner
mattst88 at gmail.com
Sat Mar 7 10:00:43 PST 2015
On Sat, Mar 7, 2015 at 9:54 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 27 February 2015 at 19:34, Matt Turner <mattst88 at gmail.com> wrote:
>> For some given GLSL IR like (+ (neg x) (* 1.2 x)), the try_emit_mad
>> function would see that one of the +'s sources was a negate expression
>> and set mul_negate = true without confirming that it was actually a
>> multiply.
>>
> Hi Matt,
>
> This commit does not pick cleanly due to with commit
> 8cfd1e2ac6b(i965/fs: Emit MAD instructions when possible.) and
> 3654b6d43ce(i965/fs: Emit MADs from (x + abs(y * z)).)
Those commits are why this one is needed. I think the problem is that
the i965/vec4 versions of those commits aren't on 10.5, so you can
simply drop the changes to i965_vec4_visitor.cpp from this patch for
10.5.
More information about the mesa-stable
mailing list