v3dv/descriptor: remove v3dv_descriptor_map_get_image_view

Now that we added support for texel_buffers, on all the cases that we
were checking for a image_view we end checking for a image_view or
buffer_view, so we stopped to use it. Remove it as it become
superfluous.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Alejandro Piñeiro
2020-08-03 16:40:06 +02:00
committed by Marge Bot
parent 888cefc797
commit 5de282b50a
2 changed files with 0 additions and 30 deletions
-24
View File
@@ -322,30 +322,6 @@ v3dv_descriptor_map_get_texture_shader_state(struct v3dv_descriptor_state *descr
return reloc;
}
struct v3dv_image_view *
v3dv_descriptor_map_get_image_view(struct v3dv_descriptor_state *descriptor_state,
struct v3dv_descriptor_map *map,
struct v3dv_pipeline_layout *pipeline_layout,
uint32_t index)
{
struct v3dv_descriptor *image_descriptor =
v3dv_descriptor_map_get_descriptor(descriptor_state,
map,
pipeline_layout,
index, NULL);
assert(image_descriptor);
assert(image_descriptor->type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE ||
image_descriptor->type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER ||
image_descriptor->type == VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT ||
image_descriptor->type == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE);
assert(image_descriptor->image_view);
assert(image_descriptor->image_view->image);
return image_descriptor->image_view;
}
/*
* As anv and tu already points:
*
-6
View File
@@ -1792,12 +1792,6 @@ v3dv_descriptor_map_get_sampler_state(struct v3dv_descriptor_state *descriptor_s
struct v3dv_pipeline_layout *pipeline_layout,
uint32_t index);
struct v3dv_image_view *
v3dv_descriptor_map_get_image_view(struct v3dv_descriptor_state *descriptor_state,
struct v3dv_descriptor_map *map,
struct v3dv_pipeline_layout *pipeline_layout,
uint32_t index);
struct v3dv_cl_reloc
v3dv_descriptor_map_get_texture_shader_state(struct v3dv_descriptor_state *descriptor_state,
struct v3dv_descriptor_map *map,