tu: increase maxPushConstantsSize to 256.
authorHyunjun Ko <zzoon@igalia.com>
Wed, 15 Jun 2022 00:08:31 +0000 (09:08 +0900)
committerMarge Bot <emma+marge@anholt.net>
Sun, 24 Jul 2022 09:03:47 +0000 (09:03 +0000)
commit0c787d57e664be05618a512e36cc448a73413fbf
treea2ad24a0e084581bb9c5831bd451e54a1b6986d3
parente1f2cabc5e2b580ab6fceff957a1e41c408b0372
tu: increase maxPushConstantsSize to 256.

Now there are two paths for push constants.

When it's range is under 128b, we can use shared consts.
When it's over 128b, we can instead do loading data through
regular path, which is same as the previous way.

Now we can satisfy emulations like vkd3d that requires 256b for
its root signatures and we think it fairly maps to push constants
rather than inline uniform blocks that requires one indirection.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15503>
src/freedreno/vulkan/tu_pipeline.c
src/freedreno/vulkan/tu_private.h
src/freedreno/vulkan/tu_shader.c