diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-12-13 10:07:44 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-12-13 10:26:35 -0500 |
commit | 709d8c29cdece86e9c629bb24c138ffd50ed26b7 (patch) | |
tree | 9ec96594fb4e578c821f0bb820ea69fe53fb70fe /src/gallium | |
parent | b0e915b4e657e83e251d21a429037ebdfb5c614a (diff) |
panfrost: Handle minor cppcheck issues
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/panfrost/pan_fragment.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index c310ab5d45b..8bfa6de476e 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2555,7 +2555,6 @@ struct pipe_context * panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags) { struct panfrost_context *ctx = rzalloc(screen, struct panfrost_context); - struct panfrost_screen *pscreen = pan_screen(screen); struct pipe_context *gallium = (struct pipe_context *) ctx; gallium->screen = screen; diff --git a/src/gallium/drivers/panfrost/pan_fragment.c b/src/gallium/drivers/panfrost/pan_fragment.c index c03df51fafa..438294926fd 100644 --- a/src/gallium/drivers/panfrost/pan_fragment.c +++ b/src/gallium/drivers/panfrost/pan_fragment.c @@ -54,7 +54,7 @@ panfrost_fragment_job(struct panfrost_batch *batch, bool has_draws, { struct panfrost_screen *screen = pan_screen(batch->ctx->base.screen); - mali_ptr framebuffer = screen->quirks & MIDGARD_SFBD ? + mali_ptr framebuffer = (screen->quirks & MIDGARD_SFBD) ? panfrost_sfbd_fragment(batch, has_draws) : panfrost_mfbd_fragment(batch, has_draws); |