From 73bd9fe20c4a4c34496d02ea888b3c1dcfdf1d4f Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 13 Dec 2019 12:41:54 -0500 Subject: [PATCH] panfrost: Simplify sampler upload condition Makes it more obvious what's going on. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 54ce6f81c71..b446a4afb01 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -500,7 +500,7 @@ panfrost_upload_sampler_descriptors(struct panfrost_context *ctx) for (int t = 0; t <= PIPE_SHADER_FRAGMENT; ++t) { mali_ptr upload = 0; - if (ctx->sampler_count[t] && ctx->sampler_view_count[t]) { + if (ctx->sampler_count[t]) { size_t transfer_size = desc_size * ctx->sampler_count[t]; struct panfrost_transfer transfer = -- 2.30.2