mesa: require render target bind for A/L/I in format selection
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 2 Aug 2022 13:24:35 +0000 (09:24 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 Aug 2022 14:24:52 +0000 (14:24 +0000)
commit28d033b34fe3c52f4720235449a0a1fd5fe683b0
tree604a2f688bfcdbe4f0169cebaae8ad2e6f9c3cb6
parent4f28e2827c9ccc26dc608a870209b4deab7b5882
mesa: require render target bind for A/L/I in format selection

these are required framebuffer formats in certain versions of GL,
so don't create a texture that can't later be bound to a framebuffer

see also spec@!opengl 3.0@required-texture-attachment-formats

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17687>
src/mesa/state_tracker/st_format.c