asahi: Correctly set IOGPU_ATTACHMENT::size

Not sure what this is used for, but let's not lie to the kernel.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14898>
This commit is contained in:
Alyssa Rosenzweig
2022-01-18 20:07:12 -05:00
parent daab41b80b
commit 93f2ae1205
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -553,6 +553,7 @@ agx_flush(struct pipe_context *pctx,
ctx->batch->scissor.bo->ptr.gpu,
ctx->batch->width,
ctx->batch->height,
util_format_get_blocksize(rt0->base.format),
pipeline_null.gpu,
pipeline_clear,
pipeline_store,
+2 -2
View File
@@ -56,7 +56,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
uint64_t encoder_ptr,
uint64_t encoder_id,
uint64_t scissor_ptr,
unsigned width, unsigned height,
unsigned width, unsigned height, unsigned bpp,
uint32_t pipeline_null,
uint32_t pipeline_clear,
uint32_t pipeline_store,
@@ -141,7 +141,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
agx_pack((map + (offset_attachments / 4) + 4), IOGPU_ATTACHMENT, cfg) {
cfg.address = rt0;
cfg.type = AGX_IOGPU_ATTACHMENT_TYPE_COLOUR;
cfg.size = 800*600*4;
cfg.size = width * height * 4;
cfg.percent = 100;
}
+1 -1
View File
@@ -30,7 +30,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
uint64_t encoder_ptr,
uint64_t encoder_id,
uint64_t scissor_ptr,
unsigned width, unsigned height,
unsigned width, unsigned height, unsigned bpp,
uint32_t pipeline_null,
uint32_t pipeline_clear,
uint32_t pipeline_store,