nvk: fix pipeline pushbuf sizing

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Dave Airlie
2022-08-16 12:15:08 +10:00
committed by Marge Bot
parent 8dff06aada
commit 86b05c2750
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);
}
+1 -1
View File
@@ -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 *);