zink: bail out of dmabuf resource creation when srgb explosion is expected
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 5 Aug 2022 16:32:17 +0000 (12:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 18 Aug 2022 14:38:15 +0000 (14:38 +0000)
commit63d70d6dd99601683af4905cb69975efad382c0e
tree55e1fc0b248d248a707340bd86f7698faeaac645
parent04e4de6faeb110a0a799e096a1a36775ac82fb3f
zink: bail out of dmabuf resource creation when srgb explosion is expected

if srgb-ness isn't supported by the driver for dmabuf, bail out early with an
error message with the assumption that this would later (maybe) explode when
trying to create a view for srgb framebuffer

ref !17900

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18095>
src/gallium/drivers/zink/zink_resource.c