diff options
author | Marek Olšák <[email protected]> | 2016-05-01 13:47:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-05-02 22:49:25 +0200 |
commit | dc970c4f4e03e17e32132734c1707d845ab610c9 (patch) | |
tree | f7315478f12d18c9e9da85cb3810f173229fb978 /src/gallium/drivers/radeon/r600_texture.c | |
parent | 02f90cef7d4c5417da31bea6c098bc06b9c4e035 (diff) |
winsys/amdgpu: read NUM_BANKS from buffer metadata
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 41bc48a5f7e..48410785f22 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -1036,6 +1036,7 @@ static struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen surface.tile_split = metadata.tile_split; surface.stencil_tile_split = metadata.stencil_tile_split; surface.mtilea = metadata.mtilea; + surface.num_banks = metadata.num_banks; if (metadata.macrotile == RADEON_LAYOUT_TILED) array_mode = RADEON_SURF_MODE_2D; |