mesa/src/broadcom/vulkan
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
..
.dir-locals.el
.editorconfig
meson.build meson: add support for meson devenv with vulkan 2022-02-04 09:08:47 -08:00
v3dv_android.c v3dv: Use the common QueueSignalReleaseImageANDROID from RADV 2022-01-05 16:36:10 +00:00
v3dv_bo.c v3dv: add a refcount mechanism to BOs 2022-01-05 12:22:45 +00:00
v3dv_bo.h v3dv: add a refcount mechanism to BOs 2022-01-05 12:22:45 +00:00
v3dv_cl.c v3dv/build: meson infrastructure for multi-hw-version support 2021-06-22 11:34:06 +02:00
v3dv_cl.h v3dv: remove gen-dependant includes from v3dv_private 2021-06-22 11:34:06 +02:00
v3dv_cmd_buffer.c v3dv: Use the common command pool implementation 2022-02-11 08:06:25 +00:00
v3dv_debug.c v3dv/debug: add v3dv_debug 2020-10-13 21:21:25 +00:00
v3dv_debug.h v3dv/debug: add v3dv_print_v3d_key 2020-10-13 21:21:33 +00:00
v3dv_descriptor_set.c v3dv: remove unused v3dv_descriptor_map_get_texture_format 2022-01-21 13:24:18 +00:00
v3dv_device.c v3dv: expose VK_KHR_depth_stencil_resolve 2022-01-28 12:25:43 +00:00
v3dv_formats.c v3dv: add swizzle helpers to identify formats wit R/B swap and reverse flags 2022-01-14 10:10:10 +00:00
v3dv_image.c vulkan: Rename vk_image_view::format to view_format 2022-02-16 00:14:50 +00:00
v3dv_limits.h v3dv: track first and last subpass that use a view index 2021-07-27 07:31:32 +00:00
v3dv_meta_clear.c mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
v3dv_meta_common.h v3d,v3dv: move TFU register definition to a common header 2021-11-17 11:04:31 +01:00
v3dv_meta_copy.c mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00
v3dv_pass.c v3dv: fallback to blit resolve if render area is not aligned to tile boundaries 2022-01-28 12:25:43 +00:00
v3dv_pipeline.c v3dv: support VK_KHR_8bit_storage 2022-01-25 09:08:26 +00:00
v3dv_pipeline_cache.c v3dv: Switch to the new vk_error helpers 2021-10-07 20:51:36 +00:00
v3dv_private.h v3dv: Use the common command pool implementation 2022-02-11 08:06:25 +00:00
v3dv_query.c v3dv: implement VK_EXT_host_query_reset 2021-10-15 05:36:42 +00:00
v3dv_queue.c v3dv: don't submit noop job if there is nothing to wait on or signal 2022-02-01 07:28:46 +00:00
v3dv_uniforms.c vulkan/runtime: Add a level field to vk_command_buffer 2022-02-11 08:06:24 +00:00
v3dv_wsi.c anv,lavapipe,v3dv: use wsi_common_get_image 2022-01-14 17:41:42 +00:00
v3dvx_cmd_buffer.c vulkan: Rename vk_image_view::format to view_format 2022-02-16 00:14:50 +00:00
v3dvx_descriptor_set.c v3dv: split v3dv_descriptor hw version dependant to a new source file. 2021-06-22 11:34:06 +02:00
v3dvx_device.c v3dv: implement VK_KHR_imageless_framebuffer 2022-01-27 07:11:20 +00:00
v3dvx_formats.c v3dv: implement VK_EXT_4444_formats 2022-01-14 10:10:10 +00:00
v3dvx_image.c vulkan: Rename vk_image_view::format to view_format 2022-02-16 00:14:50 +00:00
v3dvx_meta_common.c v3dv: implement double-buffer mode 2022-01-14 10:57:26 +00:00
v3dvx_pipeline.c v3d,v3dv: don't disable EZ for passthrough Z writes 2021-12-03 10:39:08 +00:00
v3dvx_private.h v3dv: implement VK_KHR_imageless_framebuffer 2022-01-27 07:11:20 +00:00
v3dvx_queue.c v3dv: allow limiting amount of tile state allocated 2021-07-16 09:36:37 +00:00