summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_image.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-07-28 21:34:02 +0200
committerMarek Olšák <[email protected]>2017-08-04 02:10:04 +0200
commit4662e45350d54d55950253d361321ba6cb291c68 (patch)
tree9a1182ab57dcef36747a4a8cdfe3cf08753431be /src/amd/vulkan/radv_image.c
parent6839d3369905eb02151334ea7b4cd39ddcfa6770 (diff)
ac/surface: move tile_swizzle to ac_surface and document it
Gfx9 will use it too. Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r--src/amd/vulkan/radv_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index ce1ee24036e..4b47e17af0a 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -218,7 +218,7 @@ si_set_mutable_tex_desc_fields(struct radv_device *device,
state[0] = va >> 8;
if (chip_class < GFX9)
- state[0] |= image->surface.u.legacy.tile_swizzle;
+ state[0] |= image->surface.tile_swizzle;
state[1] &= C_008F14_BASE_ADDRESS_HI;
state[1] |= S_008F14_BASE_ADDRESS_HI(va >> 40);
state[3] |= S_008F1C_TILING_INDEX(si_tile_mode_index(image, base_level,
@@ -235,7 +235,7 @@ si_set_mutable_tex_desc_fields(struct radv_device *device,
state[6] |= S_008F28_COMPRESSION_EN(1);
state[7] = meta_va >> 8;
if (chip_class < GFX9)
- state[7] |= image->surface.u.legacy.tile_swizzle;
+ state[7] |= image->surface.tile_swizzle;
}
}
@@ -484,7 +484,7 @@ si_make_texture_descriptor(struct radv_device *device,
fmask_state[0] = va >> 8;
if (device->physical_device->rad_info.chip_class < GFX9)
- fmask_state[0] |= image->surface.u.legacy.tile_swizzle;
+ fmask_state[0] |= image->surface.tile_swizzle;
fmask_state[1] = S_008F14_BASE_ADDRESS_HI(va >> 40) |
S_008F14_DATA_FORMAT_GFX6(fmask_format) |
S_008F14_NUM_FORMAT_GFX6(num_format);