anv: Add stencil texturing support for gen7

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [] - 17 June 2019 22:32 EDT

Intel hardware didn't get support for sampling from W-tiled (required for stencil) images until Broadwell so we can't directly sample from stencil. Instead, if we want to support stencil texturing on gen7 hardware, we have to keep a texture-capable shadow copy around and use BLORP to update when stencil changes. The one thing this commit does not implement is self-dependencies with stencil input attachments.


f3ea0cf8289 anv: Add stencil texturing support for gen7
src/intel/vulkan/anv_formats.c | 4 +-
src/intel/vulkan/anv_image.c | 23 ++++++++++--
src/intel/vulkan/genX_cmd_buffer.c | 76 ++++++++++++++++++++++++++++++++++++++
3 files changed, 96 insertions(+), 7 deletions(-)


  • Share