draw: handle primitive ID for quads/quad strips.
authorDave Airlie <airlied@redhat.com>
Fri, 13 Aug 2021 05:00:13 +0000 (15:00 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 16 Aug 2021 19:33:11 +0000 (05:33 +1000)
commit3b1b1af6942e7d38cd35d4d47c2e37c3cce2b32f
tree3bc5a7ac3d1da1c754796189a57172b3f74bf7db
parent441e490f5a13d96255810f38260445437033be63
draw: handle primitive ID for quads/quad strips.

In order to enable compat contexts QUADS/QUAD_STRIPS need
to support primitive ID. There are some piglit tests for this.

This adds support to the decomposer to pass quads so the prim
assembler can pick them up and add primitive IDs.

Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12374>
src/gallium/auxiliary/draw/draw_decompose_tmp.h
src/gallium/auxiliary/draw/draw_gs_tmp.h
src/gallium/auxiliary/draw/draw_prim_assembler.c
src/gallium/auxiliary/draw/draw_prim_assembler_tmp.h
src/gallium/auxiliary/util/u_prim.h