summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 17752c98602..cc3a00902e6 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -100,10 +100,8 @@ panfrost_emit_midg_tiler(
/* Sanity check */
- unsigned total_size = header_size + body_size;
-
if (t.hierarchy_mask) {
- assert(ctx->tiler_polygon_list.bo->size >= total_size);
+ assert(ctx->tiler_polygon_list.bo->size >= (header_size + body_size));
/* Specify allocated tiler structures */
t.polygon_list = ctx->tiler_polygon_list.bo->gpu;
@@ -775,7 +773,7 @@ panfrost_upload_tex(
struct panfrost_sampler_view *view)
{
if (!view)
- return (mali_ptr) NULL;
+ return (mali_ptr) 0;
struct pipe_sampler_view *pview = &view->base;
struct panfrost_resource *rsrc = pan_resource(pview->texture);