[Mesa-dev] [PATCH] mesa: allow unlimited temporaries
luca at luca-barbieri.com
Mon Sep 6 09:58:40 PDT 2010
> And prog_optimize can't do anything if there are temporaries with indirect
> addressing. We need either the temporary array file or to do register
> allocation in GLSL IR.
Sure, but I think this can/should be done on top of this change, and
thus isn't an argument against it.
Instead of a temporary register file, just adding bounds to indirect
addressing instructions would be slightly more expressive. Not sure
which is better.
DirectX 10 has indirect temp declarations with "dcl_indexableTemp".
Anyway, pre-DirectX 10 cards such as nv30/nv40 often don't support
indirect temps at all, so they will need to be lowered somewhere,
ideally in a GLSL lowering pass, so that we can kill some of the
conditional assignments if we know that the index cannot take that
More information about the mesa-dev