zink: filled quad emulation gs generation function
authorantonino <antonino.maniscalco@collabora.com>
Fri, 3 Feb 2023 17:12:54 +0000 (18:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Mar 2023 19:18:40 +0000 (19:18 +0000)
commite2220ee55e40ec5e1ef0d8f74ff6e7d7bb5db16a
treec4b12bb82418a3070d95f67965cf935524090191
parent0cb81ac38c20edf40c4aa0edcff4633d0bb6b767
zink: filled quad emulation gs generation function

This change adds a function to generate a geometry shader that will take a quad
as an input (passed as a line strip with adjacency because quads are not
available as an input primitives for GS) and generate a triangle strip.

This can be used to emulate the quad primitive.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21238>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_compiler.h