Mesa (master): panfrost: Simplify sampler upload condition
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Dec 16 23:47:49 UTC 2019
Module: Mesa
Branch: master
Commit: 73bd9fe20c4a4c34496d02ea888b3c1dcfdf1d4f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73bd9fe20c4a4c34496d02ea888b3c1dcfdf1d4f
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Fri Dec 13 12:41:54 2019 -0500
panfrost: Simplify sampler upload condition
Makes it more obvious what's going on.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3119>
---
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 =
More information about the mesa-commit
mailing list