microsoft/spirv_to_dxil: Fix the push_constant UBO size calculation
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 25 May 2022 08:18:32 +0000 (10:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Jun 2022 10:43:18 +0000 (10:43 +0000)
commit2feef505c1e93f23bfd480eced4e1f7c7755c5ad
tree3216efc14f7e57f3714bea141175804b103e21cf
parent6783a8845566a9fdffa938d5b99127f7a3af0edf
microsoft/spirv_to_dxil: Fix the push_constant UBO size calculation

Right now, we just consider the size of the accessed portion of the
push constant array, but it doesn't necessarily reflect the size
of the UBO we should declare.

Fixes: de1e941c5909 ("microsoft/spirv_to_dxil: Lower push constant loads to UBO loads")
Reviewed-by: Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16703>
src/microsoft/spirv_to_dxil/spirv_to_dxil.c