summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-10 17:35:25 +0200
committerNicolai Hähnle <[email protected]>2017-05-18 11:48:51 +0200
commitf187a493225e33c5ce514c731a0a140d61dacb0b (patch)
tree8c295473ea70ca0e691dc53657312993a981aa6b /src/amd/common/ac_surface.h
parent15a844986af7a33a055b2c631167b38b3ed25c24 (diff)
ac/radeonsi: move amdgpu_addr_create to ac_surface
v2: - update Android.common.mk (Emil) - rebase on top of Raven support Reviewed-by: Marek Olšák <[email protected]> (v1)
Diffstat (limited to 'src/amd/common/ac_surface.h')
-rw-r--r--src/amd/common/ac_surface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index 37beb8cc70a..d648e88ae20 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -28,6 +28,13 @@
#include <stdint.h>
+#include "amd_family.h"
+
+/* Forward declarations. */
+typedef void* ADDR_HANDLE;
+
+struct amdgpu_gpu_info;
+
#define RADEON_SURF_MAX_LEVELS 15
enum radeon_surf_mode {
@@ -175,4 +182,7 @@ struct radeon_surf {
} u;
};
+ADDR_HANDLE amdgpu_addr_create(enum radeon_family family,
+ const struct amdgpu_gpu_info *info);
+
#endif /* AC_SURFACE_H */