turnip: Add support for uniform texel buffers

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 23 January 2020 02:40 EST

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.*

65e432695d9 turnip: Add support for uniform texel buffers.
src/freedreno/vulkan/tu_descriptor_set.c | 15 ++++++++---
src/freedreno/vulkan/tu_device.c | 2 +-
src/freedreno/vulkan/tu_image.c | 44 +++++++++++++++++++++++++++++---
src/freedreno/vulkan/tu_private.h | 6 ++---
4 files changed, 55 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org

  • Share