wgl: remove hard limit on pixelformats
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 17 Jun 2021 11:46:42 +0000 (13:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 06:57:03 +0000 (06:57 +0000)
commit91a1849ff04fc6b7b921a303823a111196ff8559
treeadf1548c10f56f540368a37e659faf631d55e3b0
parent8f9368ddb7c1ae682a9943cd82bbf297151da2c3
wgl: remove hard limit on pixelformats

Zink on Intel's Windows driver supports more than 256 pixelformats,
triggering asserts. So let's get rid of the hard-coded limit, and
instead use u_dynarray to store the pixelformat info.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11447>
src/gallium/frontends/wgl/stw_device.c
src/gallium/frontends/wgl/stw_device.h
src/gallium/frontends/wgl/stw_pixelformat.c