Module: Mesa
Branch: master
Commit: 13667b157aa0d5ab3fc94948c8691a615bb42540
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=13667b157aa0d5ab3fc94948c8691a615bb42540

Author: Erik Faye-Lund <[email protected]>
Date:   Wed May  5 11:30:27 2021 +0200

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>

---

 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 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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to