diff options
author | Francisco Jerez <[email protected]> | 2012-03-18 19:21:36 +0100 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2012-05-11 12:39:41 +0200 |
commit | 2644952bd4dfa3b75112dee8dfd287a12d770705 (patch) | |
tree | ff396f175da391108bf3f3d994383fde3ee3dcc2 /acinclude.m4 | |
parent | c2d31a83a8104acba05f92b025bc9b145ca34974 (diff) |
gallium/tgsi: Introduce the "LOCAL" register declaration modifier.
This change will be useful to implement function parameter passing on
top of TGSI. As we don't have a proper stack, a register-based
calling convention will be used instead, which isn't necessarily a bad
thing given that GPUs often have plenty of registers to spare.
Using the same register space for local temporaries and
inter-procedural communication caused some inefficiencies, because in
some cases the register allocator would lose the freedom to merge
temporary values together into the same physical register, leading to
suboptimal register (and sometimes, as a side effect, instruction)
usage.
The LOCAL declaration modifier specifies that the value isn't intended
for parameter passing and as a result the compiler doesn't have to
give any guarantees of it being preserved across function boundaries.
Ignoring the LOCAL flag doesn't change the semantics of a valid
program in any way, because local variables are just supposed to get a
more relaxed treatment. IOW, this should be a backwards-compatible
change.
Diffstat (limited to 'acinclude.m4')
0 files changed, 0 insertions, 0 deletions