turnip: add tu_dynamic_rendering.h
authorChia-I Wu <olvaffe@gmail.com>
Fri, 29 Jul 2022 23:12:33 +0000 (16:12 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 4 Aug 2022 00:40:12 +0000 (00:40 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811>

src/freedreno/vulkan/tu_dynamic_rendering.c
src/freedreno/vulkan/tu_dynamic_rendering.h [new file with mode: 0644]
src/freedreno/vulkan/tu_private.h

index e29a742..b7a05b3 100644 (file)
@@ -36,6 +36,7 @@
  * to make the commands owned by the device and roll our own memory tracking.
  */
 
+#include "tu_dynamic_rendering.h"
 #include "tu_private.h"
 #include "tu_cs.h"
 
diff --git a/src/freedreno/vulkan/tu_dynamic_rendering.h b/src/freedreno/vulkan/tu_dynamic_rendering.h
new file mode 100644 (file)
index 0000000..3551264
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright © 2016 Red Hat.
+ * Copyright © 2016 Bas Nieuwenhuizen
+ * SPDX-License-Identifier: MIT
+ *
+ * based in part on anv driver which is:
+ * Copyright © 2015 Intel Corporation
+ */
+
+#ifndef TU_DYNAMIC_RENDERING_H
+#define TU_DYNAMIC_RENDERING_H
+
+#include "tu_common.h"
+
+VkResult tu_init_dynamic_rendering(struct tu_device *dev);
+
+void tu_destroy_dynamic_rendering(struct tu_device *dev);
+
+VkResult tu_insert_dynamic_cmdbufs(struct tu_device *dev,
+                                   struct tu_cmd_buffer ***cmds_ptr,
+                                   uint32_t *size);
+
+#endif /* TU_DYNAMIC_RENDERING_H */
index 6e28da4..4160a39 100644 (file)
@@ -34,6 +34,7 @@
 #include "tu_cs.h"
 #include "tu_descriptor_set.h"
 #include "tu_drm.h"
+#include "tu_dynamic_rendering.h"
 #include "tu_formats.h"
 #include "tu_image.h"
 #include "tu_perfetto.h"
@@ -430,14 +431,6 @@ struct tu_device
    bool use_z24uint_s8uint;
 };
 
-VkResult tu_init_dynamic_rendering(struct tu_device *dev);
-
-void tu_destroy_dynamic_rendering(struct tu_device *dev);
-
-VkResult tu_insert_dynamic_cmdbufs(struct tu_device *dev,
-                                   struct tu_cmd_buffer ***cmds_ptr,
-                                   uint32_t *size);
-
 VkResult
 tu_device_submit_deferred_locked(struct tu_device *dev);