tu/drm/virtio: Add missing a7xx case

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30304>
(cherry picked from commit 31302ca107)
This commit is contained in:
Rob Clark 2024-07-18 13:42:38 -07:00 committed by Eric Engestrom
parent bf48ae259e
commit 602757bec9
2 changed files with 11 additions and 3 deletions

View file

@ -4394,7 +4394,7 @@
"description": "tu/drm/virtio: Add missing a7xx case",
"nominated": false,
"nomination_type": 3,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1005,8 +1005,16 @@ setup_fence_cmds(struct tu_device *dev)
memset(c, 0, sizeof(*c));
c->pkt[0] = pm4_pkt7_hdr((uint8_t)CP_EVENT_WRITE, 4);
c->pkt[1] = CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_TS);
if (fd_dev_gen(&dev->physical_device->dev_id) >= A7XX) {
c->pkt[0] = pm4_pkt7_hdr((uint8_t)CP_EVENT_WRITE7, 4);
c->pkt[1] = CP_EVENT_WRITE7_0(.event = CACHE_FLUSH_TS,
.write_src = EV_WRITE_USER_32B,
.write_dst = EV_DST_RAM,
.write_enabled = true).value;
} else {
c->pkt[0] = pm4_pkt7_hdr((uint8_t)CP_EVENT_WRITE, 4);
c->pkt[1] = CP_EVENT_WRITE_0_EVENT(CACHE_FLUSH_TS);
}
c->pkt[2] = fence_iova;
c->pkt[3] = fence_iova >> 32;
}