mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
bf48ae259e
commit
602757bec9
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue