freedreno/computerator: Fix @buf header

Order is important in the grammar, the more specific match needs to go
first.

Fixes: ba1c989348 ("freedreno/computerator: pass iova of buffer to const register")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14231>
This commit is contained in:
Rob Clark 2021-12-02 16:10:39 -08:00 committed by Marge Bot
parent 78c53f4888
commit d1edc6d9a1

View File

@ -704,7 +704,7 @@ const_header: T_A_CONST '(' T_CONSTANT ')' const_val ',' const_val ',' cons
}
buf_header_addr_reg:
| '(' T_CONSTANT ')' {
'(' T_CONSTANT ')' {
assert(($2 & 0x1) == 0); /* half-reg not allowed */
unsigned reg = $2 >> 1;
@ -712,6 +712,7 @@ buf_header_addr_reg:
/* reserve space in immediates for the actual value to be plugged in later: */
add_const($2, 0, 0, 0, 0);
}
|
buf_header: T_A_BUF const_val {
int idx = info->num_bufs++;