freedreno: Quiet unused variable warnings

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21195>
This commit is contained in:
Rob Clark
2023-02-07 12:05:32 -08:00
committed by Marge Bot
parent eaf272aa93
commit e7f88c41c4
4 changed files with 4 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb,
enum a3xx_color_swap swap = WZYX;
bool sint = false, uint = false;
struct fd_resource *rsc = NULL;
struct fdl_slice *slice = NULL;
ASSERTED struct fdl_slice *slice = NULL;
uint32_t stride = 0;
uint32_t array_stride = 0;
uint32_t offset;

View File

@@ -487,7 +487,7 @@ fd_get_reset_count(struct fd_context *ctx, bool per_context)
{
uint64_t val;
enum fd_param_id param = per_context ? FD_CTX_FAULTS : FD_GLOBAL_FAULTS;
int ret = fd_pipe_get_param(ctx->pipe, param, &val);
ASSERTED int ret = fd_pipe_get_param(ctx->pipe, param, &val);
assert(!ret);
return val;
}

View File

@@ -569,7 +569,7 @@ fd_resource_uncompress(struct fd_context *ctx, struct fd_resource *rsc, bool lin
uint64_t modifier = linear ? DRM_FORMAT_MOD_LINEAR : FD_FORMAT_MOD_QCOM_TILED;
bool success = fd_try_shadow_resource(ctx, rsc, 0, NULL, modifier);
ASSERTED bool success = fd_try_shadow_resource(ctx, rsc, 0, NULL, modifier);
/* shadow should not fail in any cases where we need to uncompress: */
assert(success);

View File

@@ -314,8 +314,7 @@ fd_resource_ubwc_offset(struct fd_resource *rsc, unsigned level, unsigned layer)
static inline bool
fd_resource_level_linear(const struct pipe_resource *prsc, int level)
{
struct fd_screen *screen = fd_screen(prsc->screen);
assert(!is_a3xx(screen));
assert(!is_a3xx(fd_screen(prsc->screen)));
return fdl_level_linear(&fd_resource_const(prsc)->layout, level);
}