panfrost: Remove old hack
I don't know why I thought this was needed. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3855> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3855>
This commit is contained in:
parent
7f6f419be9
commit
d3160a6177
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue