d3d12: Fix buffer SRV/UAV creation
authorJesse Natalie <jenatali@microsoft.com>
Thu, 23 Mar 2023 16:31:11 +0000 (09:31 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 18:34:52 +0000 (18:34 +0000)
commit4f56f2188cb9886e9112b93adc096f716510d383
treea096e3aa2406cd47336d15aafa09919663935b4b
parentefe3f246b1e73fbe4b9c235d41ee1e29e02b36b2
d3d12: Fix buffer SRV/UAV creation

Get the format right for UAVs (using the image view instead of
relying on the shader having a format specified) and limit the size
to the API-reported size.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22093>
src/gallium/drivers/d3d12/ci/d3d12-quick_gl.txt
src/gallium/drivers/d3d12/d3d12_context.cpp
src/gallium/drivers/d3d12/d3d12_draw.cpp