diff options
author | Dave Airlie <[email protected]> | 2017-04-28 08:06:09 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-05-07 23:41:39 +0100 |
commit | 823e9ea8a1d8de6fb4378f53695367bc4a418e89 (patch) | |
tree | 2f5c5f12fdb6eb8d977e5550123838e1d19c5072 /src/amd/vulkan/radv_image.c | |
parent | 2a04f5481df8ce6cb4c43382535ba9944cb3d723 (diff) |
radv: drop resolve hack workarounds
This drops the resolve workarounds that change an image
tiling mode behinds it's back, this is horrible and breaks
the image_view->image relationship. Remove all this.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 888561d59bc..e1e9d9c86b8 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -770,68 +770,6 @@ radv_image_view_init(struct radv_image_view *iview, blk_w, is_stencil, iview->descriptor); } -void radv_image_set_optimal_micro_tile_mode(struct radv_device *device, - struct radv_image *image, uint32_t micro_tile_mode) -{ - /* These magic numbers were copied from addrlib. It doesn't use any - * definitions for them either. They are all 2D_TILED_THIN1 modes with - * different bpp and micro tile mode. - */ - if (device->physical_device->rad_info.chip_class >= CIK) { - switch (micro_tile_mode) { - case 0: /* displayable */ - image->surface.tiling_index[0] = 10; - break; - case 1: /* thin */ - image->surface.tiling_index[0] = 14; - break; - case 3: /* rotated */ - image->surface.tiling_index[0] = 28; - break; - default: /* depth, thick */ - assert(!"unexpected micro mode"); - return; - } - } else { /* SI */ - switch (micro_tile_mode) { - case 0: /* displayable */ - switch (image->surface.bpe) { - case 1: - image->surface.tiling_index[0] = 10; - break; - case 2: - image->surface.tiling_index[0] = 11; - break; - default: /* 4, 8 */ - image->surface.tiling_index[0] = 12; - break; - } - break; - case 1: /* thin */ - switch (image->surface.bpe) { - case 1: - image->surface.tiling_index[0] = 14; - break; - case 2: - image->surface.tiling_index[0] = 15; - break; - case 4: - image->surface.tiling_index[0] = 16; - break; - default: /* 8, 16 */ - image->surface.tiling_index[0] = 17; - break; - } - break; - default: /* depth, thick */ - assert(!"unexpected micro mode"); - return; - } - } - - image->surface.micro_tile_mode = micro_tile_mode; -} - bool radv_layout_has_htile(const struct radv_image *image, VkImageLayout layout) { |