mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 09:00:30 +01:00
nvk: Clean up includes
Drop a bunch of totally unnecessary stuff from xf86drm.h from nvk_private.h and limit it to vk_util and vk_log. In particular, we drop nvk_entrypoints.h which is auto-generated, allowing NVK headers to be included in other parts of the tree. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25085>
This commit is contained in:
parent
318b838990
commit
1249937b5d
31 changed files with 80 additions and 43 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "nvk_buffer.h"
|
||||
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_device_memory.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
#include "nil_format.h"
|
||||
#include "nil_image.h"
|
||||
#include "nvk_buffer.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_format.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vulkan/util/vk_format.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
VkFormatFeatureFlags2
|
||||
nvk_get_buffer_format_features(struct nvk_physical_device *pdev,
|
||||
|
|
|
|||
|
|
@ -6,10 +6,13 @@
|
|||
#include "nvk_descriptor_set_layout.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_device_memory.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_mme.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_pipeline.h"
|
||||
|
||||
#include "vk_pipeline_layout.h"
|
||||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
#include "nouveau/nouveau.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "nvk_cmd_buffer.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_image_view.h"
|
||||
#include "nvk_mme.h"
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
#include "nvk_cmd_buffer.h"
|
||||
|
||||
#include "vulkan/util/vk_format.h"
|
||||
|
||||
#include "nvk_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_device_memory.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_format.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vk_format.h"
|
||||
|
||||
#include "nouveau_bo.h"
|
||||
#include "nouveau_context.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_descriptor_set.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_mme.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_pipeline.h"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#include "nvk_buffer.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_format.h"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "nvk_buffer.h"
|
||||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "nvk_cmd_pool.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
static VkResult
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@
|
|||
#include "nvk_physical_device.h"
|
||||
#include "nvk_pipeline.h"
|
||||
#include "nvk_shader.h"
|
||||
|
||||
#include "vk_nir.h"
|
||||
#include "vk_pipeline.h"
|
||||
#include "vk_pipeline_layout.h"
|
||||
|
||||
#include "nouveau_bo.h"
|
||||
#include "nouveau_context.h"
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
#include "nvk_buffer_view.h"
|
||||
#include "nvk_descriptor_set_layout.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_image_view.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_sampler.h"
|
||||
|
||||
#include "nouveau_bo.h"
|
||||
|
||||
static inline uint32_t
|
||||
|
|
|
|||
|
|
@ -2,8 +2,11 @@
|
|||
|
||||
#include "nvk_descriptor_set.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_sampler.h"
|
||||
|
||||
#include "vk_pipeline_layout.h"
|
||||
|
||||
#include "util/mesa-sha1.h"
|
||||
|
||||
static bool
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
|
||||
#include "nvk_private.h"
|
||||
|
||||
#include "vulkan/runtime/vk_descriptor_set_layout.h"
|
||||
#include "vulkan/runtime/vk_object.h"
|
||||
#include "vk_descriptor_set_layout.h"
|
||||
#include "vk_object.h"
|
||||
|
||||
struct nvk_device;
|
||||
struct nvk_sampler;
|
||||
struct vk_pipeline_layout;
|
||||
|
||||
struct nvk_descriptor_set_binding_layout {
|
||||
/* The type of the descriptors in this binding */
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
#include "nvk_device.h"
|
||||
|
||||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_instance.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vulkan/wsi/wsi_common.h"
|
||||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
#include "vulkan/wsi/wsi_common.h"
|
||||
#include <fcntl.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
#include "cl9097.h"
|
||||
#include "clb097.h"
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@
|
|||
#include "nouveau_bo.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "nv_push.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_mme.h"
|
||||
|
||||
#include "nvk_cl906f.h"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,17 @@
|
|||
#include "nvk_format.h"
|
||||
|
||||
#include "nvk_buffer_view.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vk_enum_defines.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
#include "nvtypes.h"
|
||||
#include "classes/cl902d.h"
|
||||
#include "classes/cl9097.h"
|
||||
#include "classes/cl90c0.h"
|
||||
#include "vulkan/util/vk_enum_defines.h"
|
||||
#include "vulkan/util/vk_format.h"
|
||||
|
||||
#define VA_FMT(vk_fmt, widths, swap_rb, type) \
|
||||
[VK_FORMAT_##vk_fmt] = \
|
||||
|
|
|
|||
|
|
@ -3,9 +3,12 @@
|
|||
#include "nvk_device.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_shader.h"
|
||||
#include "nv_push.h"
|
||||
|
||||
#include "vk_nir.h"
|
||||
#include "vk_pipeline.h"
|
||||
#include "vk_pipeline_layout.h"
|
||||
|
||||
#include "nv_push.h"
|
||||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_device_memory.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_format.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
#define NVK_IMAGE_H 1
|
||||
|
||||
#include "nvk_private.h"
|
||||
#include "nvk_device_memory.h"
|
||||
|
||||
#include "vk_image.h"
|
||||
|
||||
#include "nil_image.h"
|
||||
#include "nouveau_bo.h"
|
||||
#include "vulkan/runtime/vk_image.h"
|
||||
|
||||
struct nvk_device_memory;
|
||||
struct nvk_physical_device;
|
||||
|
||||
static VkFormatFeatureFlags2
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
#include "nvk_image_view.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_format.h"
|
||||
#include "nvk_image.h"
|
||||
#include "vulkan/util/vk_format.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vk_format.h"
|
||||
|
||||
static enum nil_view_type
|
||||
vk_image_view_type_to_nil_view_type(VkImageViewType view_type)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
#include "nvk_instance.h"
|
||||
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "util/build_id.h"
|
||||
|
||||
#include "vulkan/wsi/wsi_common.h"
|
||||
|
||||
#include "util/build_id.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
nvk_EnumerateInstanceVersion(uint32_t *pApiVersion)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
#include "nvk_descriptor_set.h"
|
||||
#include "nvk_descriptor_set_layout.h"
|
||||
#include "nvk_shader.h"
|
||||
|
||||
#include "vk_pipeline.h"
|
||||
#include "vk_pipeline_layout.h"
|
||||
|
||||
#include "nir_builder.h"
|
||||
#include "nir_deref.h"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
#include "cl90c0.h"
|
||||
#include "cl91c0.h"
|
||||
|
|
@ -25,7 +26,6 @@
|
|||
#include "cla1c0.h"
|
||||
#include "clb097.h"
|
||||
#include "clb0c0.h"
|
||||
#include "clb097.h"
|
||||
#include "clb197.h"
|
||||
#include "clb1c0.h"
|
||||
#include "clc0c0.h"
|
||||
|
|
@ -33,7 +33,6 @@
|
|||
#include "clc3c0.h"
|
||||
#include "clc597.h"
|
||||
#include "clc5c0.h"
|
||||
#include "clc597.h"
|
||||
#include "clc997.h"
|
||||
|
||||
PUBLIC VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
#include "nvk_private.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_pipeline.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
|
||||
#include "vk_pipeline_cache.h"
|
||||
|
||||
struct nvk_pipeline *
|
||||
|
|
|
|||
|
|
@ -3,17 +3,8 @@
|
|||
|
||||
#include <assert.h>
|
||||
|
||||
#include "nvk_entrypoints.h"
|
||||
|
||||
#include "util/log.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "vulkan/runtime/vk_log.h"
|
||||
#include "vulkan/util/vk_alloc.h"
|
||||
#include "vulkan/util/vk_util.h"
|
||||
#include "vulkan/runtime/vk_pipeline_layout.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <xf86drm.h>
|
||||
#include "vk_log.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#define NVK_MAX_SETS 8
|
||||
#define NVK_MAX_PUSH_SIZE 128
|
||||
|
|
|
|||
|
|
@ -3,19 +3,23 @@
|
|||
#include "nvk_buffer.h"
|
||||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_event.h"
|
||||
#include "nvk_mme.h"
|
||||
#include "nvk_physical_device.h"
|
||||
#include "nvk_pipeline.h"
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
#include "nouveau_bo.h"
|
||||
#include "nouveau_context.h"
|
||||
#include "util/os_time.h"
|
||||
#include "vk_meta.h"
|
||||
#include "vk_pipeline.h"
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
|
||||
#include "nouveau_bo.h"
|
||||
#include "nouveau_context.h"
|
||||
|
||||
#include "util/os_time.h"
|
||||
|
||||
#include "nvk_cl906f.h"
|
||||
#include "nvk_cl9097.h"
|
||||
#include "nvk_cla0c0.h"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
|
||||
#include "nvk_cl9097.h"
|
||||
#include "nvk_cl90b5.h"
|
||||
#include "nvk_cla0c0.h"
|
||||
|
|
|
|||
|
|
@ -1,14 +1,17 @@
|
|||
#include "nvk_sampler.h"
|
||||
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_entrypoints.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "vk_format.h"
|
||||
#include "vk_sampler.h"
|
||||
|
||||
#include "nouveau_context.h"
|
||||
|
||||
#include "util/bitpack_helpers.h"
|
||||
#include "util/format/format_utils.h"
|
||||
#include "util/format_srgb.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_sampler.h"
|
||||
|
||||
#include "cla097.h"
|
||||
#include "clb197.h"
|
||||
|
|
|
|||
|
|
@ -7,17 +7,16 @@
|
|||
#include "nvk_pipeline.h"
|
||||
#include "nvk_sampler.h"
|
||||
|
||||
#include "nouveau_bo.h"
|
||||
#include "nouveau_context.h"
|
||||
#include "vk_nir_convert_ycbcr.h"
|
||||
#include "vk_pipeline.h"
|
||||
#include "vk_pipeline_layout.h"
|
||||
#include "vk_shader_module.h"
|
||||
#include "vk_ycbcr_conversion.h"
|
||||
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "nir_xfb_info.h"
|
||||
#include "compiler/spirv/nir_spirv.h"
|
||||
#include "compiler/nir/nir_xfb_info.h"
|
||||
|
||||
#include "nv50_ir_driver.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,12 @@
|
|||
#include "nir.h"
|
||||
#include "nouveau_bo.h"
|
||||
|
||||
struct vk_shader_module;
|
||||
struct vk_pipeline_robustness_state;
|
||||
struct nvk_device;
|
||||
struct nvk_physical_device;
|
||||
struct nvk_pipeline_compilation_ctx;
|
||||
struct vk_pipeline_layout;
|
||||
struct vk_pipeline_robustness_state;
|
||||
struct vk_shader_module;
|
||||
|
||||
#define GF100_SHADER_HEADER_SIZE (20 * 4)
|
||||
#define TU102_SHADER_HEADER_SIZE (32 * 4)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue