treewide: Cleanup unused structs

vk/wsi: Remove unused struct 'wsi_headless_format'

'wsi_headless_format' appears unused, and seems
to have been since initial commit.

radv: Remove unused struct 'blit_region'

'blit_region' appears unused, I think since initial commit.

r600: Remove unused structs

'eg_interp' and 'r600_shader_src' are unused.
I think they are just leftovers from the cleanup
in 20e6c31ba6.

i915: Remove unused struct 'i915_tracked_hw_state'

'i915_tracked_hw_state' appears unused. I think it's just
a leftover from 179cb58795.

llvmpipe: Remove unused struct 'linear_interp'

'linear_interp' doesn't ever seem to have been used.

radeonsi: Remove unused struct 'texture_orig_info'

'texture_orig_info' seems unused, I think since 46b2b3bda8.

svga: Remove unused struct 'svga_3d_invalidate_gb_image'

'svga_3d_invalidate_gb_image' appears unused since 1942c06f9c.
Remove it.

nir: Remove unused struct 'split_struct_state'

'split_struct_state' looks unused since the original commit.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29105>
This commit is contained in:
Dr. David Alan Gilbert 2024-05-08 01:57:29 +01:00 committed by Marge Bot
parent 9f42a34625
commit 8b6b327d1b
8 changed files with 0 additions and 66 deletions

View File

@ -9,13 +9,6 @@
#include "vk_command_pool.h"
#include "vk_common_entrypoints.h"
struct blit_region {
VkOffset3D src_offset;
VkExtent3D src_extent;
VkOffset3D dst_offset;
VkExtent3D dst_extent;
};
static VkResult build_pipeline(struct radv_device *device, VkImageAspectFlagBits aspect, enum glsl_sampler_dim tex_dim,
VkFormat format, VkPipeline *pipeline);

View File

@ -24,12 +24,6 @@
#include "nir.h"
#include "nir_deref.h"
struct split_struct_state {
void *dead_ctx;
struct hash_table *var_to_member_map;
};
static nir_variable *
find_var_member(struct nir_variable *var, unsigned member,
struct hash_table *var_to_member_map)

View File

@ -40,13 +40,6 @@
#include "util/u_math.h"
#include "util/u_memory.h"
struct i915_tracked_hw_state {
const char *name;
void (*validate)(struct i915_context *, unsigned *batch_space);
void (*emit)(struct i915_context *);
unsigned dirty, batch_space;
};
static void
validate_flush(struct i915_context *i915, unsigned *batch_space)
{

View File

@ -63,15 +63,6 @@ struct nearest_sampler {
};
struct linear_interp {
alignas(16) uint32_t out[64];
__m128i a0;
__m128i dadx;
__m128i dady;
int width; /* rounded up to multiple of 4 */
bool is_constant;
};
/* Organize all the information needed for blending in one place.
* Could have blend function pointer here, but we currently always
* know which one we want to call.

View File

@ -331,22 +331,6 @@ void r600_pipe_shader_destroy(struct pipe_context *ctx UNUSED, struct r600_pipe_
free(shader->shader.arrays);
}
struct r600_shader_src {
unsigned sel;
unsigned swizzle[4];
unsigned neg;
unsigned abs;
unsigned rel;
unsigned kc_bank;
bool kc_rel; /* true if cache bank is indexed */
uint32_t value[4];
};
struct eg_interp {
bool enabled;
unsigned ij_index;
};
struct r600_shader_ctx {
unsigned type;
unsigned temp_reg;

View File

@ -931,16 +931,6 @@ void si_decompress_subresource(struct pipe_context *ctx, struct pipe_resource *t
}
}
struct texture_orig_info {
unsigned format;
unsigned width0;
unsigned height0;
unsigned npix_x;
unsigned npix_y;
unsigned npix0_x;
unsigned npix0_y;
};
void si_resource_copy_region(struct pipe_context *ctx, struct pipe_resource *dst,
unsigned dst_level, unsigned dstx, unsigned dsty, unsigned dstz,
struct pipe_resource *src, unsigned src_level,

View File

@ -30,12 +30,6 @@ struct svga_3d_update_gb_image {
SVGA3dCmdUpdateGBImage body;
};
struct svga_3d_invalidate_gb_image {
SVGA3dCmdHeader header;
SVGA3dCmdInvalidateGBImage body;
};
static void
svga_buffer_upload_ranges(struct svga_context *, struct svga_buffer *);

View File

@ -38,11 +38,6 @@
#include "drm-uapi/drm_fourcc.h"
struct wsi_headless_format {
VkFormat format;
struct u_vector modifiers;
};
struct wsi_headless {
struct wsi_interface base;