OSDN Git Service

mesa/st: assert that lowering is supported
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 18 Oct 2019 12:29:26 +0000 (14:29 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 22 Oct 2019 12:07:23 +0000 (12:07 +0000)
commit3a71e1d27b041853d5cb5c56c2f143a2e18d476f
tree624ea28428194bb05ca8540fe4e7e48491b09a75
parent793f6b30d9ec4bc8d4d1ab3bdb429acb7f7f3a20
mesa/st: assert that lowering is supported

Some of these lowerings aren't supported for drivers that supports
tesselation and geometry shaders. Let's add a couple of asserts to make
it obvious if these have been enabled when it's not possible.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_context.c