panfrost: Simplify ZSA bind
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Aug 2020 14:50:18 +0000 (10:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Aug 2020 14:53:53 +0000 (14:53 +0000)
void* casts are implicit.

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

src/gallium/drivers/panfrost/pan_context.c

index 53c5e11b43a7cb5aa414af810d1a927444536ca5..c845bfa68cac6dce20f87d2e88268192149511f5 100644 (file)
@@ -1155,8 +1155,7 @@ panfrost_bind_depth_stencil_state(struct pipe_context *pipe,
                                   void *cso)
 {
         struct panfrost_context *ctx = pan_context(pipe);
-        struct panfrost_zsa_state *zsa = cso;
-        ctx->depth_stencil = zsa;
+        ctx->depth_stencil = cso;
 }
 
 static void