turnip: Add support for uniform texel buffers.
authorEric Anholt <eric@anholt.net>
Wed, 22 Jan 2020 20:25:10 +0000 (12:25 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 02:40:09 +0000 (02:40 +0000)
commit65e432695d9eadca8ac8be928bf5d434e1d9e912
treea716b7999bd343cbe94e9ff34e4dd838a01411de
parent8dc0540a171627cb502f76c75a29a43a86328a95
turnip: Add support for uniform texel buffers.

Pretty straightforward: Port texture descriptor code from freedreno, fill
in alignment limits from closed vk, and tu_cmd_buffer.c was already
uploading the texture descriptor.

This doesn't implement storage texel buffers (required in the compute
pipeline) yet, since those will need an IBO descriptor for the store path.
Still, making the load path be connected to the texture descriptor won't
hurt.

Part of #2237

Fixes dEQP-VK.binding_model.shader_access.primary_cmd_buf.uniform_texel_buffer.*

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3522>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3522>
src/freedreno/vulkan/tu_descriptor_set.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_private.h