mesa/src/intel
Jason Ekstrand 05e9e7767d vulkan: Rename vk_image_view::format to view_format
When I originally added vk_image_view, I was overly clever when it came
to the format field.  I decided to make it only contain the bits of the
format contained in the selected aspects.  However, this is confusing
(not generally a good thing) and it's also not always what you want.
The Vulkan 1.3.204 spec says:

    "When using an image view of a depth/stencil image to populate a
    descriptor set (e.g. for sampling in the shader, or for use as an
    input attachment), the aspectMask must only include one bit, which
    selects whether the image view is used for depth reads (i.e. using a
    floating-point sampler or input attachment in the shader) or stencil
    reads (i.e. using an unsigned integer sampler or input attachment in
    the shader). When an image view of a depth/stencil image is used as
    a depth/stencil framebuffer attachment, the aspectMask is ignored
    and both depth and stencil image subresources are used."

So, while the restricted format makes sense for texturing, it doesn't
for when the image is being used as an attachment.  What we probably
actually want is both versions of the format.  We'll call the one given
by the VkImageViewCreateInfo vk_image_view::format and the restricted
one vk_image_view::view_format.

This is just the first commit which switches format to view_format so
the compiler will make sure we get them all.  The next commit will
re-add vk_image_view::format but this time unmodified.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15007>
2022-02-16 00:14:50 +00:00
..
blorp blorp: Assert that blorp_copy() on the blitter can handle it 2022-02-07 09:50:01 -08:00
ci ci: Bump VK-GL-CTS to 1.3.1.0. 2022-02-08 22:16:36 +00:00
common intel: Add missing dep of gen_*_header.py on utils.py. 2022-02-02 11:21:57 -08:00
compiler intel/compiler: remove what looks like a bad rebase 2022-02-15 01:04:47 +00:00
dev anv: enable ray queries 2022-02-08 12:55:25 +00:00
ds intel/ds: fix compilation with perfetto 2022-02-08 12:29:21 +00:00
genxml intel/genxml: add PIPE_CONTROL field for L3 read only cache invalidation 2022-02-09 10:05:10 +00:00
isl intel/isl: Add format assertions for surfaces using CCS 2022-02-10 04:47:14 +00:00
nullhw-layer intel/nullhw: fix build 2021-03-26 20:12:40 +00:00
perf intel/perf: use a function to do common allocations 2022-01-20 06:41:17 +00:00
tools intel: remove chipset_id 2022-01-13 03:09:36 +00:00
vulkan vulkan: Rename vk_image_view::format to view_format 2022-02-16 00:14:50 +00:00
Makefile.perf.am intel: Rename GEN_PERF prefix to INTEL_PERF in build files 2021-04-20 20:06:34 +00:00
meson.build anv: add perfetto source 2022-01-14 20:17:44 +00:00