From: Alyssa Rosenzweig Date: Tue, 23 Jul 2019 13:56:51 +0000 (-0700) Subject: panfrost: Use correct definition for is_t6xx X-Git-Tag: upstream/19.3.0~3863 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83a1d5544a78b6f741523aa1689ab0c0941d549b;p=platform%2Fupstream%2Fmesa.git panfrost: Use correct definition for is_t6xx Rather than anything "early Midgard", limit us specifically to T6XX, as certain workarounds only apply to genuine T6XX, not T7XX. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index c7a34b2..20da92a 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2682,7 +2682,7 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags) memset(ctx, 0, sizeof(*ctx)); struct pipe_context *gallium = (struct pipe_context *) ctx; - ctx->is_t6xx = pscreen->gpu_id <= 0x0750; /* For now, this flag means T760 or less */ + ctx->is_t6xx = pscreen->gpu_id < 0x0700; /* Literally, "earlier than T700" */ ctx->require_sfbd = pscreen->gpu_id < 0x0750; /* T760 is the first to support MFBD */ gallium->screen = screen;