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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user