panfrost: Simplify sampler upload condition
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 13 Dec 2019 17:41:54 +0000 (12:41 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Dec 2019 23:32:06 +0000 (23:32 +0000)
Makes it more obvious what's going on.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3119>

src/gallium/drivers/panfrost/pan_context.c

index 54ce6f81c71776dd30bf8403e2b75c81c3bc8aa5..b446a4afb011b674812322d4916b061e5c76a843 100644 (file)
@@ -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 =