nvk: fix pipeline pushbuf sizing
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
@@ -64,11 +64,11 @@ fail_bo:
|
||||
|
||||
void
|
||||
nouveau_ws_push_init_cpu(struct nouveau_ws_push *push,
|
||||
void *data, size_t size)
|
||||
void *data, size_t size_bytes)
|
||||
{
|
||||
push->map = data;
|
||||
push->orig_map = push->map;
|
||||
push->end = push->map + size;
|
||||
push->end = push->map + (size_bytes / sizeof(uint32_t));
|
||||
|
||||
util_dynarray_init(&push->bos, NULL);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ struct nouveau_ws_push {
|
||||
|
||||
struct nouveau_ws_push *nouveau_ws_push_new(struct nouveau_ws_device *, uint64_t size);
|
||||
void nouveau_ws_push_init_cpu(struct nouveau_ws_push *push,
|
||||
void *data, size_t size);
|
||||
void *data, size_t size_bytes);
|
||||
void nouveau_ws_push_destroy(struct nouveau_ws_push *);
|
||||
void nouveau_ws_push_append(struct nouveau_ws_push *,
|
||||
const struct nouveau_ws_push *);
|
||||
|
||||
Reference in New Issue
Block a user