From 2bb97f6adc9705c03a119b3422e9af97729b18e7 Mon Sep 17 00:00:00 2001 From: Patrick Lerda Date: Fri, 4 Jul 2025 14:53:52 +0200 Subject: [PATCH] r600: refactor step 4 - clean up r600_surface width0 and height0 elements These two elements are assigned and are not used. Signed-off-by: Patrick Lerda Part-of: --- src/gallium/drivers/r600/r600_pipe_common.h | 4 ---- src/gallium/drivers/r600/r600_texture.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe_common.h b/src/gallium/drivers/r600/r600_pipe_common.h index 7fadcefcabb..10f0869cdcc 100644 --- a/src/gallium/drivers/r600/r600_pipe_common.h +++ b/src/gallium/drivers/r600/r600_pipe_common.h @@ -208,10 +208,6 @@ struct r600_texture { struct r600_surface { struct pipe_surface base; - /* These can vary with block-compressed textures. */ - unsigned width0; - unsigned height0; - bool color_initialized; bool depth_initialized; diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index d9b3fb57264..77e12cbff93 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -1508,9 +1508,6 @@ struct pipe_surface *r600_create_surface_custom(struct pipe_context *pipe, surface->base.first_layer = templ->first_layer; surface->base.last_layer = templ->last_layer; - surface->width0 = width0; - surface->height0 = height0; - return &surface->base; }