anv: remove unused functions

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>
This commit is contained in:
Lionel Landwerlin 2023-05-30 16:29:56 +03:00 committed by Marge Bot
parent d17af98abc
commit 25c1f325d0

View 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,