From 218e133695301acdfddc48d7c1d0120e8a8c1dbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 21 Jun 2018 22:07:24 -0400 Subject: [PATCH] radeonsi: rename r600_memory_object -> si_memory_object Reviewed-by: Timothy Arceri --- src/gallium/drivers/radeonsi/si_pipe.h | 2 +- src/gallium/drivers/radeonsi/si_texture.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index deceb44b66c..629310a685d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -386,7 +386,7 @@ union si_mmio_counters { unsigned array[0]; }; -struct r600_memory_object { +struct si_memory_object { struct pipe_memory_object b; struct pb_buffer *buf; uint32_t stride; diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index 7b745f7477a..cba758aec2e 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -2392,7 +2392,7 @@ si_memobj_from_handle(struct pipe_screen *screen, bool dedicated) { struct si_screen *sscreen = (struct si_screen*)screen; - struct r600_memory_object *memobj = CALLOC_STRUCT(r600_memory_object); + struct si_memory_object *memobj = CALLOC_STRUCT(si_memory_object); struct pb_buffer *buf = NULL; uint32_t stride, offset; @@ -2418,7 +2418,7 @@ static void si_memobj_destroy(struct pipe_screen *screen, struct pipe_memory_object *_memobj) { - struct r600_memory_object *memobj = (struct r600_memory_object *)_memobj; + struct si_memory_object *memobj = (struct si_memory_object *)_memobj; pb_reference(&memobj->buf, NULL); free(memobj); @@ -2431,7 +2431,7 @@ si_texture_from_memobj(struct pipe_screen *screen, uint64_t offset) { struct si_screen *sscreen = (struct si_screen*)screen; - struct r600_memory_object *memobj = (struct r600_memory_object *)_memobj; + struct si_memory_object *memobj = (struct si_memory_object *)_memobj; struct pipe_resource *tex = si_texture_from_winsys_buffer(sscreen, templ, memobj->buf, memobj->stride, offset, -- 2.30.2