[Mesa-dev] [PATCH 1/2] i965/fs: Force promotion of src0 immediates.

Kenneth Graunke kenneth at whitecape.org
Mon Mar 16 16:29:05 PDT 2015

On Monday, March 16, 2015 03:16:32 PM Matt Turner wrote:
> On Mon, Mar 16, 2015 at 2:44 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> > On Monday, March 16, 2015 07:54:45 AM Tapani Pälli wrote:
> >> My first attempt to fix the bug 89569 was to add check in combine
> >> constants but for some reason I did not get it to work. One reason is
> >> that inst->sources cannot be trusted
> >
> > I certainly hope we can trust it.  If it's wrong, we need to fix that.
> We don't bother changing inst->sources when we convert a MUL dst, x,
> 0.0 into a MOV, but we do set its last source to reg_undef so it's
> safe.
> We could update inst->sources. It would at least let us skip a few
> iterations. It'd also make dump_instructions() output a bit prettier.

Ah.  Yeah, we should update that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150316/2e530a68/attachment.sig>

More information about the mesa-dev mailing list