anv: Use bindless textures and samplers

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 19 April 2019 19:56 EDT

This commit changes anv to put bindless handles and sampler pointers into the descriptor buffer and use those instead of bindful when we run out of binding table space. This "spilling" of descriptors allows to to advertise an almost unbounded number of images and samplers.

e6803f6b6f0 anv: Use bindless textures and samplers
src/intel/vulkan/anv_descriptor_set.c | 89 +++++++++++++++++++++++-
src/intel/vulkan/anv_device.c | 33 +++++++--
src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 75 ++++++++++++++------
src/intel/vulkan/anv_private.h | 32 +++++++++
src/intel/vulkan/genX_cmd_buffer.c | 12 +++-
src/intel/vulkan/genX_state.c | 18 +++++
6 files changed, 228 insertions(+), 31 deletions(-)

Upstream: cgit.freedesktop.org


  • Share