mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
radv: prevent using VRS HTILE encoding if the iview isn't compatible
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
8a5b9fdbe8
commit
881f56f77a
1 changed files with 2 additions and 1 deletions
|
|
@ -595,7 +595,8 @@ radv_initialise_ds_surface(const struct radv_device *device, struct radv_ds_buff
|
|||
.stencil_read_only = !(ds_aspects & VK_IMAGE_ASPECT_STENCIL_BIT),
|
||||
.htile_enabled = radv_htile_enabled(iview->image, level),
|
||||
.htile_stencil_disabled = radv_image_tile_stencil_disabled(device, iview->image),
|
||||
.vrs_enabled = radv_image_has_vrs_htile(device, iview->image),
|
||||
.vrs_enabled = radv_image_has_vrs_htile(device, iview->image) &&
|
||||
radv_htile_enabled(iview->image, iview->vk.base_mip_level),
|
||||
};
|
||||
|
||||
ac_init_ds_surface(&pdev->info, &ds_state, &ds->ac);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue