diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 20:21:36 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-18 11:48:51 +0200 |
commit | db77cd879b7996fcf423090b776f6f96708818c3 (patch) | |
tree | a913254a029b573c534d4411a0a98cd8583e570c /src/amd/common/ac_surface.h | |
parent | f187a493225e33c5ce514c731a0a140d61dacb0b (diff) |
ac/radeonsi: move the bulk of gfx6_surface_init to ac_surface
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.h')
-rw-r--r-- | src/amd/common/ac_surface.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index d648e88ae20..5e4cb81630b 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -182,7 +182,31 @@ struct radeon_surf { } u; }; +struct ac_surf_info { + uint32_t width; + uint32_t height; + uint32_t depth; + uint8_t samples; + uint8_t levels; + uint16_t array_size; +}; + +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); +int gfx6_compute_surface(ADDR_HANDLE addrlib, + const struct ac_surf_config *config, + enum radeon_surf_mode mode, + struct radeon_surf *surf); + #endif /* AC_SURFACE_H */ |