diff options
author | Connor Abbott <[email protected]> | 2019-09-19 00:47:28 +0700 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-09-24 08:44:54 +0200 |
commit | fed5b605f09ac1a6c23d2aeced7f9abccdf02139 (patch) | |
tree | 3ede22b46423c880a441db8899fb49a000bbd0b5 /src/gallium | |
parent | ef38a659fbcc5eb22ad653e6d557d39e2b7b5fe8 (diff) |
lima/gpir: Fix 64-bit shift in scheduler spilling
There are 64 physical registers so the shift must be 64 bits.
Reviewed-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/lima/ir/gp/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/scheduler.c b/src/gallium/drivers/lima/ir/gp/scheduler.c index e069079591c..bf8bd63e57c 100644 --- a/src/gallium/drivers/lima/ir/gp/scheduler.c +++ b/src/gallium/drivers/lima/ir/gp/scheduler.c @@ -861,12 +861,12 @@ static uint64_t get_available_regs(sched_ctx *ctx, gpir_node *node, if (instr->reg0_use_count == 0) use_available = ~0ull; else if (!instr->reg0_is_attr) - use_available = 0xf << (4 * instr->reg0_index); + use_available = 0xfull << (4 * instr->reg0_index); if (instr->reg1_use_count == 0) use_available = ~0ull; else - use_available |= 0xf << (4 * instr->reg1_index); + use_available |= 0xfull << (4 * instr->reg1_index); available &= use_available; } |