summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2021-05-05 11:30:27 +0200
committerMarge Bot <eric+marge@anholt.net>2021-05-05 14:25:25 +0000
commit13667b157aa0d5ab3fc94948c8691a615bb42540 (patch)
tree80ab499d2a150707814d57399f5f73d1ca91859a
parentace28308bb27e19244095e46e78d8fecb532b8b0 (diff)
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10645>
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_draw.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_draw.c b/src/gallium/drivers/freedreno/a5xx/fd5_draw.c
index 6868b521314..05302459ed0 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;