pan/midgard: Extend liveness analysis to trinary ops
Fixes RA fails with multiple indirect SSBO writes. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
c690b37d76
commit
14b5b9ac38
|
@ -636,12 +636,8 @@ allocate_registers(compiler_context *ctx, bool *spilled)
|
||||||
* invocations, and if there are none, the source dies
|
* invocations, and if there are none, the source dies
|
||||||
* */
|
* */
|
||||||
|
|
||||||
int sources[2] = {
|
for (int src = 0; src < ARRAY_SIZE(ins->ssa_args.src); ++src) {
|
||||||
ins->ssa_args.src[0], ins->ssa_args.src[1]
|
int s = ins->ssa_args.src[src];
|
||||||
};
|
|
||||||
|
|
||||||
for (int src = 0; src < 2; ++src) {
|
|
||||||
int s = sources[src];
|
|
||||||
|
|
||||||
if (s < 0) continue;
|
if (s < 0) continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue