freedreno: Assert we aren't writing to 0x0

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31534>
This commit is contained in:
Rob Clark
2024-10-04 09:15:53 -07:00
committed by Marge Bot
parent fd8eabdd4b
commit e32237739f

View File

@@ -58,6 +58,7 @@ static inline uint32_t
pm4_pkt4_hdr(uint16_t regindx, uint16_t cnt)
{
assert(cnt < 0x7f);
assert(regindx);
return CP_TYPE4_PKT | cnt | (pm4_odd_parity_bit(cnt) << 7) |
((regindx & 0x3ffff) << 8) |
((pm4_odd_parity_bit(regindx) << 27));