diff options
author | Marek Olšák <[email protected]> | 2017-01-24 21:39:42 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 14:44:33 +0200 |
commit | 566defad138161a321ef11b528a7c4fcae273f6e (patch) | |
tree | c3f2d7e80b1bca7cc8c4796f053f3ed8a8dc11cc /src/gallium/drivers/radeon/radeon_winsys.h | |
parent | fc3c503b5d7fc9843220c8d89c6394f145f096af (diff) |
radeonsi/gfx9: add a workaround for 1D depth textures
The same workaround is used by Vulkan.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_winsys.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_winsys.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h index e25f60cb904..5b032bfea7b 100644 --- a/src/gallium/drivers/radeon/radeon_winsys.h +++ b/src/gallium/drivers/radeon/radeon_winsys.h @@ -327,6 +327,13 @@ struct legacy_surf_layout { uint8_t stencil_tiling_index[RADEON_SURF_MAX_LEVELS]; }; +/* Same as addrlib - AddrResourceType. */ +enum gfx9_resource_type { + RADEON_RESOURCE_1D = 0, + RADEON_RESOURCE_2D, + RADEON_RESOURCE_3D, +}; + struct gfx9_surf_flags { uint16_t swizzle_mode; /* tile mode */ uint16_t epitch; /* (pitch - 1) or (height - 1) */ @@ -346,6 +353,7 @@ struct gfx9_surf_layout { struct gfx9_surf_meta_flags htile; /* metadata of depth and stencil */ struct gfx9_surf_meta_flags cmask; /* metadata of fmask */ + enum gfx9_resource_type resource_type; /* 1D, 2D or 3D */ /* The size of the 2D plane containing all mipmap levels. */ uint64_t surf_slice_size; uint16_t surf_pitch; /* in blocks */ |