mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-30 02:51:24 +00:00
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:
parent
78c53f4888
commit
d1edc6d9a1
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user