summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-12 01:24:48 +0200
committerNicolai Hähnle <[email protected]>2017-05-18 11:48:52 +0200
commit98a2492290be3d6d9a73a75935c9105e6b5b3f31 (patch)
tree2665ee70eb7ed692b24b099cbb8acbd0b91045a2 /src/amd/common/ac_surface.h
parent988c8662129fda08df21486508915be419139cf2 (diff)
ac_surface: use radeon_info from ac_gpu_info
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.h')
-rw-r--r--src/amd/common/ac_surface.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index 73649c76a10..9905be916ba 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -34,6 +34,7 @@
typedef void* ADDR_HANDLE;
struct amdgpu_gpu_info;
+struct radeon_info;
#define RADEON_SURF_MAX_LEVELS 15
@@ -195,16 +196,12 @@ struct ac_surf_config {
struct ac_surf_info info;
unsigned is_3d : 1;
unsigned is_cube : 1;
- enum chip_class chip_class : 4;
- unsigned num_tile_pipes;
- unsigned pipe_interleave_bytes;
- const struct amdgpu_gpu_info *amdinfo;
};
-ADDR_HANDLE amdgpu_addr_create(enum radeon_family family,
- const struct amdgpu_gpu_info *info);
+ADDR_HANDLE amdgpu_addr_create(const struct radeon_info *info,
+ const struct amdgpu_gpu_info *amdinfo);
-int ac_compute_surface(ADDR_HANDLE addrlib,
+int ac_compute_surface(ADDR_HANDLE addrlib, const struct radeon_info *info,
const struct ac_surf_config * config,
enum radeon_surf_mode mode,
struct radeon_surf *surf);