From: Alyssa Rosenzweig Date: Tue, 18 Feb 2020 15:08:51 +0000 (-0500) Subject: panfrost: Remove old hack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3160a6177a51035fcdb634e184a29b4ef0619e9;p=mesa.git panfrost: Remove old hack I don't know why I thought this was needed. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 2e0bda518ea..f234d9435c3 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1588,12 +1588,11 @@ panfrost_bind_rasterizer_state( { struct panfrost_context *ctx = pan_context(pctx); - /* TODO: Why can't rasterizer be NULL ever? Other drivers are fine.. */ + ctx->rasterizer = hwcso; + if (!hwcso) return; - ctx->rasterizer = hwcso; - ctx->fragment_shader_core.depth_units = ctx->rasterizer->base.offset_units * 2.0f; ctx->fragment_shader_core.depth_factor = ctx->rasterizer->base.offset_scale;