hk: eliminate null_sink

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35797>
This commit is contained in:
Alyssa Rosenzweig
2025-04-24 11:44:37 -04:00
committed by Marge Bot
parent fa21722f1c
commit 222ffc352e
3 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -3047,7 +3047,7 @@ hk_flush_dynamic_state(struct hk_cmd_buffer *cmd, struct hk_cs *cs,
*/
desc->root.draw.vertex_output_buffer =
vb_size ? hk_pool_alloc(cmd, vb_size, 4).gpu
: dev->rodata.null_sink;
: AGX_SCRATCH_PAGE_ADDRESS;
}
}
-8
View File
@@ -102,14 +102,6 @@ hk_upload_rodata(struct hk_device *dev)
dev->rodata.heap = dev->rodata.bo->va->addr + offs;
offs += sizeof(struct agx_heap);
/* 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.
*/
offs = align(offs, 16);
dev->rodata.null_sink = dev->rodata.bo->va->addr + offs;
offs += 16;
return VK_SUCCESS;
}
-1
View File
@@ -84,7 +84,6 @@ struct hk_device {
struct {
struct agx_bo *bo;
uint64_t image_heap_ptr;
uint64_t null_sink;
uint64_t heap;
} rodata;