d3d12: Handle null constant buffers
authorJesse Natalie <jenatali@microsoft.com>
Mon, 1 Mar 2021 17:37:57 +0000 (09:37 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Mar 2021 20:42:58 +0000 (20:42 +0000)
commiteb27db8681643cbde80a9e04e25e7fb42d07fdf3
tree996796804183d78c39af275724ade5efec618b11
parent6a8c51dc5a4b5f802967b70c5869d48a26c61555
d3d12: Handle null constant buffers

RuneScape ends up hitting this path, and it's easy enough to get
some well-defined behavior instead of a crash.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-By: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9342>
src/gallium/drivers/d3d12/d3d12_draw.cpp