mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-11 16:18:18 +02:00
panfrost: Kill a useless memset(0) in panfrost_create_context()
ctx is allocated with rzalloc() which takes care of zero-ing the memory region. No need to call memset(0) on top. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
4eac1b2008
commit
07085fe8a4
1 changed files with 0 additions and 1 deletions
|
|
@ -2628,7 +2628,6 @@ 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);
|
||||
memset(ctx, 0, sizeof(*ctx));
|
||||
struct pipe_context *gallium = (struct pipe_context *) ctx;
|
||||
|
||||
ctx->is_t6xx = pscreen->gpu_id < 0x0700; /* Literally, "earlier than T700" */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue