turnip: move away from tu_private.h
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811>
This commit is contained in:
@@ -14,7 +14,7 @@ ContinuationIndentWidth: 3
|
||||
Cpp11BracedListStyle: false
|
||||
IncludeBlocks: Regroup
|
||||
IncludeCategories:
|
||||
- Regex: '^"tu_private.h"$'
|
||||
- Regex: '^"tu_common.h"$'
|
||||
Priority: 0
|
||||
- Regex: '^"(drm/|ir3/|tu_)'
|
||||
Priority: 4
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_android.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <hardware/gralloc.h>
|
||||
|
||||
@@ -38,6 +37,9 @@
|
||||
#include "util/libsync.h"
|
||||
#include "util/os_file.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
static int
|
||||
tu_hal_open(const struct hw_module_t *mod,
|
||||
const char *id,
|
||||
|
@@ -22,8 +22,12 @@
|
||||
*/
|
||||
|
||||
#include "tu_autotune.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
#include "tu_pass.h"
|
||||
|
||||
/* How does it work?
|
||||
*
|
||||
|
@@ -7,9 +7,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_clear_blit.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "tu_cs.h"
|
||||
|
||||
#include "ir3/ir3_nir.h"
|
||||
|
||||
@@ -19,6 +16,10 @@
|
||||
#include "util/half_float.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_formats.h"
|
||||
#include "tu_image.h"
|
||||
#include "tu_tracepoints.h"
|
||||
|
||||
static uint32_t
|
||||
|
@@ -26,13 +26,13 @@
|
||||
*/
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "vk_render_pass.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "tu_clear_blit.h"
|
||||
#include "tu_cs.h"
|
||||
|
||||
#include "tu_image.h"
|
||||
#include "tu_tracepoints.h"
|
||||
|
||||
void
|
||||
|
@@ -22,12 +22,13 @@
|
||||
*/
|
||||
|
||||
#include "tu_cs.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "tu_device.h"
|
||||
|
||||
/* A simple implementations of breadcrumbs tracking of GPU progress
|
||||
* intended to be a last resort when debugging unrecoverable hangs.
|
||||
* For best results use Vulkan traces to have a predictable place of hang.
|
||||
|
@@ -36,7 +36,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_descriptor_set.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -44,6 +43,9 @@
|
||||
#include "vk_descriptors.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
static inline uint8_t *
|
||||
pool_base(struct tu_descriptor_pool *pool)
|
||||
{
|
||||
|
@@ -26,15 +26,12 @@
|
||||
*/
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_private.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_tracepoints.h"
|
||||
#include "git_sha1.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#include "git_sha1.h"
|
||||
#include "util/debug.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/driconf.h"
|
||||
@@ -45,6 +42,17 @@
|
||||
/* for fd_get_driver/device_uuid() */
|
||||
#include "freedreno/common/freedreno_uuid.h"
|
||||
|
||||
#include "tu_clear_blit.h"
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_descriptor_set.h"
|
||||
#include "tu_dynamic_rendering.h"
|
||||
#include "tu_image.h"
|
||||
#include "tu_pass.h"
|
||||
#include "tu_query.h"
|
||||
#include "tu_tracepoints.h"
|
||||
#include "tu_wsi.h"
|
||||
|
||||
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XCB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XLIB_KHR) || \
|
||||
|
@@ -44,9 +44,10 @@
|
||||
#include "util/timespec.h"
|
||||
#include "util/os_time.h"
|
||||
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_dynamic_rendering.h"
|
||||
|
||||
struct tu_queue_submit
|
||||
{
|
||||
|
@@ -37,7 +37,8 @@
|
||||
*/
|
||||
|
||||
#include "tu_dynamic_rendering.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
|
||||
struct dynamic_rendering_entry {
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* Copyright © 2016 Red Hat.
|
||||
* Copyright © 2016 Bas Nieuwenhuizen
|
||||
@@ -24,13 +23,15 @@
|
||||
*/
|
||||
|
||||
#include "tu_formats.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "fdl/fd6_format_table.h"
|
||||
|
||||
#include "vk_util.h"
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
struct tu_native_format
|
||||
tu6_format_vtx(VkFormat vk_format)
|
||||
{
|
||||
|
@@ -26,7 +26,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_image.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "fdl/fd6_format_table.h"
|
||||
|
||||
@@ -35,7 +34,11 @@
|
||||
#include "vk_util.h"
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
|
||||
#include "tu_android.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_descriptor_set.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_formats.h"
|
||||
|
||||
uint32_t
|
||||
tu6_plane_count(VkFormat format)
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_drm.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
@@ -34,6 +33,11 @@
|
||||
|
||||
#include "util/debug.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_dynamic_rendering.h"
|
||||
|
||||
struct tu_syncobj {
|
||||
struct vk_object_base base;
|
||||
uint32_t timestamp;
|
||||
|
@@ -22,9 +22,11 @@
|
||||
*/
|
||||
|
||||
#include "tu_lrz.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "tu_clear_blit.h"
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
/* Low-resolution Z buffer is very similar to a depth prepass that helps
|
||||
* the HW avoid executing the fragment shader on those fragments that will
|
||||
|
@@ -4,9 +4,11 @@
|
||||
*/
|
||||
|
||||
#include "tu_shader.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "nir_builder.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
|
||||
/* Some a6xx variants cannot support a non-contiguous multiview mask. Instead,
|
||||
* inside the shader something like this needs to be inserted:
|
||||
*
|
||||
|
@@ -26,10 +26,13 @@
|
||||
*/
|
||||
|
||||
#include "tu_pass.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
/* Return true if we have to fallback to sysmem rendering because the
|
||||
* dependency can't be satisfied with tiled rendering.
|
||||
*/
|
||||
|
@@ -21,10 +21,10 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "tu_private.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_perfetto.h"
|
||||
|
||||
/* Including tu_private.h in tu_perfetto.cc doesn't work, so
|
||||
/* Including tu_device.h in tu_perfetto.cc doesn't work, so
|
||||
* we need some helper methods to access tu_device.
|
||||
*/
|
||||
|
||||
|
@@ -28,7 +28,6 @@
|
||||
#include "tu_pipeline.h"
|
||||
|
||||
#include "common/freedreno_guardband.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "ir3/ir3_nir.h"
|
||||
#include "main/menums.h"
|
||||
@@ -41,7 +40,12 @@
|
||||
#include "vk_render_pass.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_device.h"
|
||||
#include "tu_formats.h"
|
||||
#include "tu_lrz.h"
|
||||
#include "tu_pass.h"
|
||||
|
||||
/* Emit IB that preloads the descriptors that the shader uses */
|
||||
|
||||
|
@@ -24,16 +24,18 @@
|
||||
*/
|
||||
|
||||
#include "tu_query.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "util/os_time.h"
|
||||
|
||||
#include "tu_cs.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "tu_cmd_buffer.h"
|
||||
#include "tu_cs.h"
|
||||
#include "tu_device.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000ull
|
||||
#define WAIT_TIMEOUT 5
|
||||
#define STAT_COUNT ((REG_A6XX_RBBM_PRIMCTR_10_LO - REG_A6XX_RBBM_PRIMCTR_0_LO) / 2 + 1)
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_shader.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "spirv/nir_spirv.h"
|
||||
#include "util/mesa-sha1.h"
|
||||
@@ -32,6 +31,10 @@
|
||||
|
||||
#include "ir3/ir3_nir.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_descriptor_set.h"
|
||||
#include "tu_pipeline.h"
|
||||
|
||||
nir_shader *
|
||||
tu_spirv_to_nir(struct tu_device *dev,
|
||||
void *mem_ctx,
|
||||
|
@@ -54,7 +54,7 @@ tu_default_tps = []
|
||||
|
||||
Header('util/u_dump.h')
|
||||
Header('vk_format.h')
|
||||
Header('freedreno/vulkan/tu_private.h', scope=HeaderScope.SOURCE)
|
||||
Header('freedreno/vulkan/tu_device.h', scope=HeaderScope.SOURCE)
|
||||
|
||||
ForwardDecl('struct tu_device')
|
||||
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "tu_util.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
@@ -31,6 +30,9 @@
|
||||
#include "util/timespec.h"
|
||||
#include "vk_enum_to_str.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_pass.h"
|
||||
|
||||
void PRINTFLIKE(3, 4)
|
||||
__tu_finishme(const char *file, int line, const char *format, ...)
|
||||
{
|
||||
|
@@ -24,12 +24,13 @@
|
||||
*/
|
||||
|
||||
#include "tu_wsi.h"
|
||||
#include "tu_private.h"
|
||||
|
||||
#include "vk_util.h"
|
||||
#include "wsi_common_drm.h"
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
|
||||
static VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
|
||||
tu_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName)
|
||||
{
|
||||
|
Reference in New Issue
Block a user