[Mesa-dev] [PATCH 11/15] i965: abort linking if we exhaust the registers

Juan A. Suarez Romero jasuarez at igalia.com
Fri Apr 29 09:32:48 UTC 2016


On Fri, 2016-04-29 at 11:15 +0200, Ian Romanick wrote:
> I don't see where you get 19.  I get 3 array elements * 2 matrix
> columns
> * 2 for value0, 2 array elements * 3 matrix columns * 2 for value1,
> and
> 1 for piglit_vertex.  That's 25.
> 
> This overcounts because by naive doubling the dmat2 counts each
> column
> as 2 slots, but we only actually need 1. By doubling only when it's
> necessary, that shader would need (3 * 2) + (2 * 3 * 2) + 1 = 19.


I get 19 because for value0, I count 3 array elements * 2 matrix
columns. I don't multiply by 2 again because dmat2 is not in the list
of the types that my count as consuming twice.


In any case, either counting 25 or 19, the value is above the limit.


	J.A.



More information about the mesa-dev mailing list