st/mesa: only enable ARB_enhanced_layouts if there are xfb buffers
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Feb 2022 05:08:59 +0000 (00:08 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Feb 2022 03:31:16 +0000 (03:31 +0000)
commit86eaff29c0b118e0892b18089784fed02435bbf2
tree59725ab58c0b0bc55602f1d528f6060972717d0e
parent13c6f401ccbcf25eb5dbd93cb59f88555e3785b8
st/mesa: only enable ARB_enhanced_layouts if there are xfb buffers

It really doesn't make sense without any xfb support. One could limp
along, but our validation does not work as-is. Doesn't seem important to
support this use-case.

This disables GL_ARB_enhanced_layouts on crocus with gen4/5.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14869>
src/mesa/state_tracker/st_extensions.c