mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
panvk: move sparse blackhole stuff to panvk_sparse.{c,h}
While we're at it also add the SPDX header to panvk_sparse.c because I forgor to do that when it was first being added. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37483>
This commit is contained in:
parent
515d8f8e3a
commit
dbf20eb49f
7 changed files with 26 additions and 6 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include "panvk_macros.h"
|
||||
#include "panvk_queue.h"
|
||||
#include "panvk_utrace.h"
|
||||
#include "panvk_sparse.h"
|
||||
|
||||
#include "util/bitscan.h"
|
||||
#include "vk_drm_syncobj.h"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ panvk_tracepoints = custom_target(
|
|||
libpanvk_files = files(
|
||||
'panvk_buffer.c',
|
||||
'panvk_cmd_pool.c',
|
||||
'panvk_device.c',
|
||||
'panvk_device_memory.c',
|
||||
'panvk_host_copy.c',
|
||||
'panvk_image.c',
|
||||
|
|
@ -46,6 +45,7 @@ libpanvk_files = files(
|
|||
'panvk_mempool.c',
|
||||
'panvk_physical_device.c',
|
||||
'panvk_priv_bo.c',
|
||||
'panvk_sparse.c',
|
||||
'panvk_utrace.c',
|
||||
'panvk_wsi.c',
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include "panvk_device.h"
|
||||
#include "panvk_device_memory.h"
|
||||
#include "panvk_entrypoints.h"
|
||||
#include "panvk_sparse.h"
|
||||
|
||||
#include "pan_props.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -177,11 +177,6 @@ panvk_as_free(struct panvk_device *device, uint64_t address, uint64_t size)
|
|||
simple_mtx_unlock(&device->as.lock);
|
||||
}
|
||||
|
||||
VkResult panvk_map_to_blackhole(struct panvk_device *device,
|
||||
uint64_t address, uint64_t size);
|
||||
|
||||
struct pan_kmod_bo *panvk_get_blackhole(struct panvk_device *device);
|
||||
|
||||
#if PAN_ARCH
|
||||
VkResult
|
||||
panvk_per_arch(create_device)(struct panvk_physical_device *physical_device,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "panvk_image.h"
|
||||
#include "panvk_instance.h"
|
||||
#include "panvk_physical_device.h"
|
||||
#include "panvk_sparse.h"
|
||||
|
||||
#include "drm-uapi/drm_fourcc.h"
|
||||
#include "util/u_atomic.h"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
/*
|
||||
* Copyright © 2025 Collabora Ltd.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "panvk_device.h"
|
||||
#include "panvk_sparse.h"
|
||||
|
||||
#include "drm-uapi/panthor_drm.h"
|
||||
|
||||
16
src/panfrost/vulkan/panvk_sparse.h
Normal file
16
src/panfrost/vulkan/panvk_sparse.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright © 2025 Collabora Ltd.
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#ifndef PANVK_SPARSE_H
|
||||
#define PANVK_SPARSE_H
|
||||
|
||||
#include "vk_device.h"
|
||||
|
||||
VkResult panvk_map_to_blackhole(struct panvk_device *device,
|
||||
uint64_t address, uint64_t size);
|
||||
|
||||
struct pan_kmod_bo *panvk_get_blackhole(struct panvk_device *device);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue