mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
asahi: Check-box implement rasterizer discard
Passes dEQP-GLES3.functional.rasterizer_discard.* Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20123>
This commit is contained in:
parent
d2a2d1997e
commit
7f247743a3
1 changed files with 4 additions and 0 deletions
|
|
@ -2041,6 +2041,10 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
|
|||
if (agx_scissor_culls_everything(ctx))
|
||||
return;
|
||||
|
||||
/* We don't support side effects in vertex stages, so this is trivial */
|
||||
if (ctx->rast->base.rasterizer_discard)
|
||||
return;
|
||||
|
||||
/* Dirty track the reduced prim: lines vs points vs triangles */
|
||||
enum pipe_prim_type reduced_prim = u_reduced_prim(info->mode);
|
||||
if (reduced_prim != batch->reduced_prim) ctx->dirty |= AGX_DIRTY_PRIM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue