anv: remove unused functions
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 30 May 2023 13:29:56 +0000 (16:29 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 May 2023 15:14:49 +0000 (15:14 +0000)
I thought I removed those, it seems my rebase got screwed up :(

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 64f20cec28 ("anv: prepare image/buffer views for non indirect descriptors")
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23317>

src/intel/vulkan/anv_image.c

index 87340b1..993f021 100644 (file)
@@ -2458,23 +2458,6 @@ remap_swizzle(VkComponentSwizzle swizzle,
    }
 }
 
-static void *
-anv_surface_get_surface_state_ptr(struct anv_device *device,
-                                  struct anv_surface_state *state)
-{
-   /* Check whether a surface state was allocated and use it. In the indirect
-    * descriptor case, we always have a surface state. In the direct
-    * descriptor case, only attachments have surface states (see
-    * anv_cmd_buffer_init_attachments())
-    */
-   if (state->state.map) {
-      return state->state.map;
-   } else {
-      assert(!device->physical->indirect_descriptors);
-      return state->state_data.data;
-   }
-}
-
 void
 anv_image_fill_surface_state(struct anv_device *device,
                              const struct anv_image *image,
@@ -2883,16 +2866,6 @@ anv_DestroyImageView(VkDevice _device, VkImageView _iview,
    vk_image_view_destroy(&device->vk, pAllocator, &iview->vk);
 }
 
-static void *
-anv_buffer_state_get_ptr(struct anv_device *device,
-                         struct anv_buffer_state *state)
-{
-   if (device->physical->indirect_descriptors)
-      return state->state.map;
-   else
-      return state->state_data.data;
-}
-
 static void
 anv_fill_buffer_view_surface_state(struct anv_device *device,
                                    struct anv_buffer_state *state,