79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From db2e1d340763e23180e4709e4ddf33390f2e49ea Mon Sep 17 00:00:00 2001
|
|
From: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
|
Date: Fri, 17 Nov 2023 09:00:01 +0000
|
|
Subject: [PATCH] artist: set memory region owners for buffers to the artist
|
|
device mainline inclusion commit 39fbaeca096a9bf6cbe2af88572c1cb2aa62aa8c
|
|
category: bugfix
|
|
|
|
---------------------------------------------------------------
|
|
|
|
This fixes the output of "info qom-tree" so that the buffers appear as children
|
|
of the artist device, rather than underneath the "unattached" container.
|
|
|
|
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
|
|
Message-Id: <20220624160839.886649-1-mark.cave-ayland@ilande.co.uk>
|
|
Reviewed-by: Helge Deller <deller@gmx.de>
|
|
|
|
Signed-off-by: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
|
---
|
|
hw/display/artist.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/display/artist.c b/hw/display/artist.c
|
|
index 21b7fd1b44..1767203477 100644
|
|
--- a/hw/display/artist.c
|
|
+++ b/hw/display/artist.c
|
|
@@ -1359,7 +1359,7 @@ static void artist_create_buffer(ARTISTState *s, const char *name,
|
|
{
|
|
struct vram_buffer *buf = s->vram_buffer + idx;
|
|
|
|
- memory_region_init_ram(&buf->mr, NULL, name, width * height,
|
|
+ memory_region_init_ram(&buf->mr, OBJECT(s), name, width * height,
|
|
&error_fatal);
|
|
memory_region_add_subregion_overlap(&s->mem_as_root, *offset, &buf->mr, 0);
|
|
|
|
--
|
|
2.27.0
|
|
|