Module: Mesa
Branch: main
Commit: 035cf7ab970d34191b48c0a9b560084c051153e6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=035cf7ab970d34191b48c0a9b560084c051153e6

Author: Chia-I Wu <[email protected]>
Date:   Thu Nov  2 16:06:24 2023 -0700

radv: fix a typo in radv_image_view_make_descriptor

Only GFX8 and before have legacy_surf_level.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25964>

---

 src/amd/vulkan/radv_image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 28aa6ccde60..58fefb95293 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -2056,7 +2056,7 @@ radv_image_view_make_descriptor(struct radv_image_view 
*iview, struct radv_devic
                                 img_create_flags, nbc_view, sliced_3d);
 
    const struct legacy_surf_level *base_level_info = NULL;
-   if (device->physical_device->rad_info.gfx_level <= GFX9) {
+   if (device->physical_device->rad_info.gfx_level <= GFX8) {
       if (is_stencil)
          base_level_info = 
&plane->surface.u.legacy.zs.stencil_level[iview->vk.base_mip_level];
       else

Reply via email to