mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 08:08:25 +02:00
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:
parent
f0d680437f
commit
c7a8200dcd
2 changed files with 1 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue