From 13667b157aa0d5ab3fc94948c8691a615bb42540 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 5 May 2021 11:30:27 +0200 Subject: [PATCH] freedreno/a5xx: Remove ppgtt hack This should no longer be needed after !7773, which fixes the issue that lead to the crash. Sorry for not fixing the issue earlier ;) Part-of: --- src/gallium/drivers/freedreno/a5xx/fd5_draw.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_draw.c b/src/gallium/drivers/freedreno/a5xx/fd5_draw.c index 6868b52..0530245 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_draw.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_draw.c @@ -97,16 +97,6 @@ fd5_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info, .sprite_coord_mode = ctx->rasterizer->sprite_coord_mode, }; - /* Technically a5xx should not require this, but it avoids a crash in - * piglit 'spec@!opengl 1.1@ppgtt_memory_alignment' due to a draw with - * no VBO bound but a VS that expects an input. The draw is a single - * vertex with PIPE_PRIM_TRIANGLES so the u_trim_pipe_prim() causes it - * to be skipped. - */ - if (info->mode != PIPE_PRIM_MAX && !indirect && !info->primitive_restart && - !u_trim_pipe_prim(info->mode, (unsigned *)&draw->count)) - return false; - ir3_fixup_shader_state(&ctx->base, &emit.key.key); unsigned dirty = ctx->dirty; -- 2.7.4