diff options
author | Marek Olšák <[email protected]> | 2018-06-18 21:34:57 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-06-19 13:08:50 -0400 |
commit | 1ba87f4438069964af6548f4fa05386be999f4de (patch) | |
tree | f5baf9ce51e8753083ec4598b606c5488a777dbd /src/gallium/drivers/radeonsi/si_buffer.c | |
parent | 6703fec58cc38d18b2268544889659ea049060aa (diff) |
radeonsi: rename r600_texture -> si_texture, rxxx -> xxx or sxxx
Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_buffer.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c index 5bd95bffc17..5c4ca5aefd2 100644 --- a/src/gallium/drivers/radeonsi/si_buffer.c +++ b/src/gallium/drivers/radeonsi/si_buffer.c @@ -104,7 +104,7 @@ void si_init_resource_fields(struct si_screen *sscreen, struct r600_resource *res, uint64_t size, unsigned alignment) { - struct r600_texture *rtex = (struct r600_texture*)res; + struct si_texture *tex = (struct si_texture*)res; res->bo_size = size; res->bo_alignment = alignment; @@ -160,7 +160,7 @@ void si_init_resource_fields(struct si_screen *sscreen, } /* Tiled textures are unmappable. Always put them in VRAM. */ - if ((res->b.b.target != PIPE_BUFFER && !rtex->surface.is_linear) || + if ((res->b.b.target != PIPE_BUFFER && !tex->surface.is_linear) || res->b.b.flags & SI_RESOURCE_FLAG_UNMAPPABLE) { res->domains = RADEON_DOMAIN_VRAM; res->flags |= RADEON_FLAG_NO_CPU_ACCESS | |