mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
r600g: always put tiled textures in VRAM
This commit is contained in:
parent
773ff5705f
commit
952c905767
1 changed files with 2 additions and 1 deletions
|
|
@ -290,8 +290,9 @@ r600_texture_create_object(struct pipe_screen *screen,
|
|||
/* Now create the backing buffer. */
|
||||
if (!buf && alloc_bo) {
|
||||
unsigned base_align = rtex->surface.bo_alignment;
|
||||
unsigned usage = R600_TEX_IS_TILED(rtex, 0) ? PIPE_USAGE_STATIC : base->usage;
|
||||
|
||||
if (!r600_init_resource(rscreen, resource, rtex->size, base_align, base->bind, base->usage)) {
|
||||
if (!r600_init_resource(rscreen, resource, rtex->size, base_align, base->bind, usage)) {
|
||||
FREE(rtex);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue