panfrost: Specify supported draw modes per-context
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 8 Feb 2019 02:28:12 +0000 (02:28 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 11 Feb 2019 03:23:00 +0000 (03:23 +0000)
commit85e2bb58cafde2238797b98eec5f105b3a0a3c73
tree52c9fee3255004d9f45cceb4d0db159bfce32b10
parent90c6880df77c49dfadd97d8a4c4cde86fdd82670
panfrost: Specify supported draw modes per-context

Midgard has native support for QUADS and POLYGONS; Bifrost seemingly
does not. Thus, Midgard generally skips prim_convert whereas Bifrost
needs the pass; this patch allows the setting of allowed primitives to
occur on a per-context basis (for runtime hardware selection).

v2: Use (POLYGONS + 1) instead of LINES_ADJACENCY.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Robert Foss <robert.foss@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h