[Mesa-dev] [PATCH 3/9] i965/nir: Lower to registers a bit later.

Kenneth Graunke kenneth at whitecape.org
Wed Mar 11 12:01:49 PDT 2015


On Wednesday, March 11, 2015 10:29:02 AM Ian Romanick wrote:
> On 03/09/2015 01:58 AM, Kenneth Graunke wrote:
> > We can't safely call nir_optimize() with register present, since several
> > passes called in the loop can't handle registers, and will fail asserts.
> 
> Doesn't that mean this patch should go before patch 2?

Probably.  I only provoked the bug by using this code path for vertex
shaders, which aren't enabled until the end of the series.

It may be possible to provoke it via fragment shaders (and piglit simply
doesn't), but if so, it would have already been broken - we already have
one nir_optimize() before lower_to_registers.

So I don't feel too strongly about it.
-------------- 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/20150311/71f20f3b/attachment.sig>


More information about the mesa-dev mailing list