anv: Add stencil texturing support for gen7
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 17 Jun 2019 02:21:16 +0000 (21:21 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 17 Jun 2019 22:32:26 +0000 (22:32 +0000)
commitf3ea0cf8289ebdbb45d7122095919fb6752eb433
treee6bf480d13e2de840d910a4eceaba919f22775a1
parent4faa3145b16ed2160082ef70c8925c9fb0b1964c
anv: Add stencil texturing support for gen7

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.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99493
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/genX_cmd_buffer.c