mesa/src/broadcom/vulkan
Alejandro Piñeiro 30b6fbc496 v3dv: use the common base object type and struct
Used as reference Hyujun's commit
5d3fdbc52b, that does the same for
turnip.

This commit also replaces in several cases alloc for zalloc, and adds
checks on more Destroy methods if the object to be free is NULL or
not. Most of them were needed to avoid crashes/weird behaviour due
trying to use un-initialized data. Note that now that vk_object_free
iterates over a array, making it more against un-initialized or just
NULL data.

Additionally, using zalloc we can also remove some memset to 0. In
fact we needed to remove them, as if not, they would override the
vk_object_base object to 0 (the alternative would me doing a memset
computing a pointer offset, but that's is not needed as we can just
use zalloc).

v2:
   * Call memset(0) on reused descriptor sets when calling
     ResetDescriptorPool, not when reallocating them (Iago)
   * Add null check when calling DestroyImageView (detected by a full CTS run)

v3: Fixed rebase conflicts after last meta copy/clear changes

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7627>
2020-11-17 23:55:14 +00:00
..
.dir-locals.el
.editorconfig
meson.build v3dv: VK_KHR_display extension support 2020-11-11 08:36:05 +00:00
v3d_tiling.c v3dv: implement vkCreateImage 2020-10-13 21:21:25 +00:00
v3dv_bo.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_bo.h v3dv: add a v3dv_bo_init helper 2020-11-04 13:56:51 +01:00
v3dv_cl.c v3dv/bo: adding a BO cache 2020-10-13 21:21:31 +00:00
v3dv_cl.h v3dv/descriptor: use descriptor pool bo for image/samplers 2020-10-13 21:21:30 +00:00
v3dv_cmd_buffer.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +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: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_device.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_entrypoints_gen.py
v3dv_extensions.py v3dv: expose VK_KHR_maintenance1 2020-11-02 09:33:32 +01:00
v3dv_extensions_gen.py
v3dv_formats.c v3dv: add a buffer to image copy path using a texel buffer 2020-11-17 12:04:42 +01:00
v3dv_icd.py
v3dv_image.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_limits.h v3dv: add v3dv_limits file 2020-10-13 21:21:32 +00:00
v3dv_meta_clear.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_meta_copy.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_pass.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_pipeline.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_pipeline_cache.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_private.h v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_query.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_queue.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_uniforms.c v3dv/pipeline: take into account precision for the output_type 2020-11-14 15:59:02 +00:00
v3dv_util.c v3dv/util: remove several logging functions 2020-11-09 12:54:56 +00:00
v3dv_wsi.c v3dv: use the common base object type and struct 2020-11-17 23:55:14 +00:00
v3dv_wsi_display.c v3dv: VK_KHR_display extension support 2020-11-11 08:36:05 +00:00
v3dv_wsi_x11.c v3dv: hook up WSI support 2020-10-13 21:21:26 +00:00
vk_format_info.h v3dv: fix blitting of signed integer formats 2020-10-13 21:21:32 +00:00