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 <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29286>
This commit is contained in:
Samuel Pitoiset
2024-05-20 09:58:52 +02:00
committed by Marge Bot
parent fb37ea092d
commit d09afbdebc

View File

@@ -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) | state[6] |= S_00A018_COMPRESSION_EN(1) | S_00A018_META_PIPE_ALIGNED(meta.pipe_aligned) |
S_00A018_META_DATA_ADDRESS_LO(meta_va >> 8); 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; state[7] = meta_va >> 16;
} }
} else if (gfx_level == GFX9) { } 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)); 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. */ /* Initialize the sampler view for FMASK. */
if (fmask_state) { if (fmask_state) {
if (radv_image_has_fmask(image)) { if (radv_image_has_fmask(image)) {