pan/va: Don't truncate slots

Causes BARRIER not to work.

Fixes: f45654af59 ("pan/va: Add packing routines")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15756>
This commit is contained in:
Alyssa Rosenzweig 2022-03-30 16:02:03 -04:00
parent 9b727944a0
commit 4f5e0e1874

View file

@ -617,7 +617,7 @@ va_pack_instr(const bi_instr *I, unsigned flow)
hex |= ((uint64_t) va_select_fau_page(I)) << 57;
if (info.slot) {
unsigned slot = (I->op == BI_OPCODE_BARRIER) ? 7 : 0;
uint64_t slot = (I->op == BI_OPCODE_BARRIER) ? 7 : 0;
hex |= (slot << 30);
}