From d09afbdebc151e7b4cbb64c520125a6ca05b52f3 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 20 May 2024 09:58:52 +0200 Subject: [PATCH] radv: set ITERATE_256 for GFX10+ in radv_set_mutable_tex_desc_fields() To be closer to the RadeonSI helper. This doesn't change anything for RADV because images are required to be bound at image view creation. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_image_view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_image_view.c b/src/amd/vulkan/radv_image_view.c index af23bf25eec..59415198b39 100644 --- a/src/amd/vulkan/radv_image_view.c +++ b/src/amd/vulkan/radv_image_view.c @@ -188,6 +188,10 @@ radv_set_mutable_tex_desc_fields(struct radv_device *device, struct radv_image * state[6] |= S_00A018_COMPRESSION_EN(1) | S_00A018_META_PIPE_ALIGNED(meta.pipe_aligned) | S_00A018_META_DATA_ADDRESS_LO(meta_va >> 8); + + if (radv_image_get_iterate256(device, image)) + state[6] |= S_00A018_ITERATE_256(1); + state[7] = meta_va >> 16; } } else if (gfx_level == GFX9) { @@ -353,10 +357,6 @@ gfx10_make_texture_descriptor(struct radv_device *device, struct radv_image *ima S_00A018_ALPHA_IS_ON_MSB(vi_alpha_is_on_msb(device, vk_format)); } - if (radv_image_get_iterate256(device, image)) { - state[6] |= S_00A018_ITERATE_256(1); - } - /* Initialize the sampler view for FMASK. */ if (fmask_state) { if (radv_image_has_fmask(image)) {