hk: don't allocate zero sink

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
Alyssa Rosenzweig 2025-01-24 12:47:00 -05:00 committed by Marge Bot
parent f0d680437f
commit c7a8200dcd
2 changed files with 1 additions and 9 deletions

View file

@ -103,14 +103,6 @@ hk_upload_rodata(struct hk_device *dev)
dev->rodata.geometry_state = dev->rodata.bo->va->addr + offs;
offs += sizeof(struct agx_geometry_state);
/* For null readonly buffers, we need to allocate 16 bytes of zeroes for
* robustness2 semantics on read.
*/
offs = align(offs, 16);
dev->rodata.zero_sink = dev->rodata.bo->va->addr + offs;
memset(map + offs, 0, 16);
offs += 16;
/* For null storage descriptors, we need to reserve 16 bytes to catch writes.
* No particular content is required; we cannot get robustness2 semantics
* without more work.

View file

@ -84,7 +84,7 @@ struct hk_device {
struct {
struct agx_bo *bo;
struct agx_usc_uniform_packed image_heap;
uint64_t null_sink, zero_sink;
uint64_t null_sink;
uint64_t geometry_state;
} rodata;