mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
nvc0/ir: make sure that thread count immediate for BAR fit
The limit of the thread count immediate value is 12 bits. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
3af78b426e
commit
5777e87bed
1 changed files with 1 additions and 0 deletions
|
|
@ -1482,6 +1482,7 @@ CodeEmitterNVC0::emitBAR(const Instruction *i)
|
|||
} else {
|
||||
ImmediateValue *imm = i->getSrc(1)->asImm();
|
||||
assert(imm);
|
||||
assert(imm->reg.data.u32 <= 0xfff);
|
||||
code[0] |= imm->reg.data.u32 << 26;
|
||||
code[1] |= imm->reg.data.u32 >> 6;
|
||||
code[1] |= 0x4000;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue