mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: remove radv_private.h
This file was a giant mess and I'm very happy to remove it entirely. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28568>
This commit is contained in:
parent
367cf70a29
commit
69b911bc53
86 changed files with 145 additions and 193 deletions
|
|
@ -44,7 +44,8 @@ EXCLUDED_COMMANDS = [
|
|||
TEMPLATE = Template(COPYRIGHT + """
|
||||
/* This file generated from ${filename}, don't edit directly. */
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
#define ANNOTATE(command, ...) \
|
||||
struct radv_cmd_buffer *cmd_buffer = radv_cmd_buffer_from_handle(commandBuffer); \
|
||||
|
|
|
|||
|
|
@ -21,8 +21,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
ctx_roll_QueuePresentKHR(VkQueue _queue, const VkPresentInfoKHR *pPresentInfo)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
quantic_dream_UnmapMemory2KHR(VkDevice _device, const VkMemoryUnmapInfoKHR *pMemoryUnmapInfo)
|
||||
|
|
|
|||
|
|
@ -21,8 +21,9 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_framebuffer.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@
|
|||
|
||||
#include "rmv/vk_rmv_common.h"
|
||||
#include "rmv/vk_rmv_tokens.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_queue.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
#include "meta/radv_meta.h"
|
||||
#include "util/u_process.h"
|
||||
#include "radv_event.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rra.h"
|
||||
#include "vk_acceleration_structure.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_queue.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_sqtt.h"
|
||||
|
|
|
|||
|
|
@ -151,7 +151,6 @@ libradv_files = files(
|
|||
'radv_pipeline_rt.h',
|
||||
'radv_printf.c',
|
||||
'radv_printf.h',
|
||||
'radv_private.h',
|
||||
'radv_queue.c',
|
||||
'radv_queue.h',
|
||||
'radv_radeon_winsys.h',
|
||||
|
|
|
|||
|
|
@ -31,18 +31,20 @@
|
|||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_image_view.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_pipeline.h"
|
||||
#include "radv_pipeline_compute.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_queue.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_object.h"
|
||||
#include "radv_sqtt.h"
|
||||
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_meta.h"
|
||||
#include "vk_command_pool.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
struct blit_region {
|
||||
|
|
|
|||
|
|
@ -25,9 +25,11 @@
|
|||
*/
|
||||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_meta.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
enum blit2d_src_type {
|
||||
BLIT2D_SRC_TYPE_IMAGE,
|
||||
|
|
|
|||
|
|
@ -22,8 +22,10 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_meta.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
/*
|
||||
* GFX queue: Compute shader implementation of image->buffer copy
|
||||
|
|
|
|||
|
|
@ -23,13 +23,14 @@
|
|||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "util/format_rgb9e5.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
enum { DEPTH_CLEAR_SLOW, DEPTH_CLEAR_FAST };
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include "radv_formats.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_sdma.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include "ac_surface.h"
|
||||
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include "ac_surface.h"
|
||||
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
static nir_shader *
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
|
||||
enum radv_depth_op {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
|
||||
enum radv_color_op {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include "radv_formats.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
static VkResult radv_device_init_meta_fmask_expand_state_internal(struct radv_device *device, uint32_t samples_log2);
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
#include "vk_format.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,12 +27,13 @@
|
|||
#include "nir/nir_builder.h"
|
||||
#include "nir/nir_format_convert.h"
|
||||
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
static nir_def *
|
||||
radv_meta_build_resolve_srgb_conversion(nir_builder *b, nir_def *input)
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_format.h"
|
||||
|
|
|
|||
|
|
@ -24,10 +24,13 @@
|
|||
#include "ac_shader_util.h"
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
#include "sid.h"
|
||||
|
||||
typedef struct {
|
||||
enum amd_gfx_level gfx_level;
|
||||
|
|
|
|||
|
|
@ -26,9 +26,10 @@
|
|||
#include "nir_builder.h"
|
||||
#include "radv_constants.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
#include "sid.h"
|
||||
|
||||
#define GET_SGPR_FIELD_NIR(arg, field) \
|
||||
ac_nir_unpack_arg(b, &s->args->ac, arg, field##__SHIFT, util_bitcount(field##__MASK))
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
#include "nir/nir.h"
|
||||
#include "nir/nir_builder.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "sid.h"
|
||||
|
||||
typedef struct {
|
||||
bool dynamic_rasterization_samples;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@
|
|||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
#include "radv_shader_info.h"
|
||||
bool
|
||||
radv_nir_lower_fs_intrinsics(nir_shader *nir, const struct radv_shader_stage *fs_stage,
|
||||
const struct radv_graphics_state_key *gfx_state)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
bool
|
||||
radv_nir_lower_intrinsics_early(nir_shader *nir, bool lower_view_index_to_zero)
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@
|
|||
#include "ac_nir.h"
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
|
||||
static bool
|
||||
radv_should_lower_poly_line_smooth(nir_shader *nir, const struct radv_graphics_state_key *gfx_state)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
#include "nir/radv_nir_rt_common.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
/* Traversal stack size. Traversal supports backtracking so we can go deeper than this size if
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "ac_gpu_info.h"
|
||||
#include "ac_nir.h"
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_constants.h"
|
||||
#include "radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "compiler/spirv/spirv.h"
|
||||
|
||||
#include "radv_private.h"
|
||||
struct radv_device;
|
||||
|
||||
nir_def *build_addr_to_node(nir_builder *b, nir_def *addr);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#include "ac_nir.h"
|
||||
#include "radv_pipeline_cache.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
#include "vk_pipeline.h"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "radv_radix_sort.h"
|
||||
#include "targets/u64/config.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "target.h"
|
||||
|
||||
static const uint32_t init_spv[] = {
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "radv_sqtt.h"
|
||||
|
||||
#include "meta/radv_meta.h"
|
||||
#include "nir_builder.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
#include "radix_sort/common/vk/barrier.h"
|
||||
#include "radix_sort/radv_radix_sort.h"
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_android.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
#include <libsync.h>
|
||||
|
|
@ -45,6 +45,7 @@
|
|||
#include "util/os_file.h"
|
||||
|
||||
#include "vk_android.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
|
|
|
|||
|
|
@ -26,12 +26,16 @@
|
|||
*/
|
||||
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_instance.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_rmv.h"
|
||||
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_debug_utils.h"
|
||||
#include "vk_log.h"
|
||||
|
||||
void
|
||||
radv_buffer_init(struct radv_buffer *buffer, struct radv_device *device, struct radeon_winsys_bo *bo, uint64_t size,
|
||||
|
|
|
|||
|
|
@ -29,9 +29,11 @@
|
|||
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_buffer_view.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "vk_log.h"
|
||||
|
||||
void
|
||||
radv_make_texel_buffer_descriptor(struct radv_device *device, uint64_t va, VkFormat vk_format, unsigned offset,
|
||||
|
|
|
|||
|
|
@ -33,13 +33,13 @@
|
|||
#include "radv_device_generated_commands.h"
|
||||
#include "radv_event.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_object.h"
|
||||
#include "radv_sqtt.h"
|
||||
#include "sid.h"
|
||||
#include "vk_command_pool.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_enum_defines.h"
|
||||
#include "vk_format.h"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_sqtt.h"
|
||||
#include "sid.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_sqtt.h"
|
||||
#include "sid.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,10 @@
|
|||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
#include "sid.h"
|
||||
|
||||
static inline unsigned
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@
|
|||
#include "ac_debug.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_shader.h"
|
||||
#include "sid.h"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@
|
|||
#ifndef RADV_DEBUG_H
|
||||
#define RADV_DEBUG_H
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_instance.h"
|
||||
#include "radv_physical_device.h"
|
||||
|
||||
/* Please keep docs/envvars.rst up-to-date when you add/remove options. */
|
||||
enum {
|
||||
|
|
|
|||
|
|
@ -29,16 +29,20 @@
|
|||
#include "util/mesa-sha1.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_buffer_view.h"
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_image_view.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_sampler.h"
|
||||
#include "sid.h"
|
||||
#include "vk_acceleration_structure.h"
|
||||
#include "vk_descriptors.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_util.h"
|
||||
#include "vk_ycbcr_conversion.h"
|
||||
|
||||
static unsigned
|
||||
radv_descriptor_type_buffer_count(VkDescriptorType type)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef RADV_DESCRIPTOR_SET_H
|
||||
#define RADV_DESCRIPTOR_SET_H
|
||||
|
||||
#include "util/mesa-sha1.h"
|
||||
|
||||
#include "radv_constants.h"
|
||||
|
||||
#include "vk_descriptor_set_layout.h"
|
||||
|
|
|
|||
|
|
@ -48,10 +48,10 @@
|
|||
#include "util/u_debug.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_printf.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_spm.h"
|
||||
|
|
|
|||
|
|
@ -23,13 +23,14 @@
|
|||
|
||||
#include "radv_device_generated_commands.h"
|
||||
#include "meta/radv_meta.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
#include "ac_rgp.h"
|
||||
|
||||
#include "nir_builder.h"
|
||||
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
static void
|
||||
radv_get_sequence_size_compute(const struct radv_indirect_command_layout *layout,
|
||||
|
|
|
|||
|
|
@ -28,10 +28,12 @@
|
|||
#include "radv_device_memory.h"
|
||||
#include "radv_android.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
|
||||
#include "vk_log.h"
|
||||
|
||||
void
|
||||
radv_device_memory_init(struct radv_device_memory *mem, struct radv_device *device, struct radeon_winsys_bo *bo)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@
|
|||
#include "vk_object.h"
|
||||
|
||||
#include "radv_android.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
struct radv_device;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,13 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_event.h"
|
||||
#include "vk_alloc.h"
|
||||
#include "vk_log.h"
|
||||
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_event.h"
|
||||
#include "radv_rmv.h"
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -25,14 +25,15 @@
|
|||
#include "radv_formats.h"
|
||||
#include "radv_android.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "sid.h"
|
||||
|
||||
#include "vk_android.h"
|
||||
#include "vk_enum_defines.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
#include "util/format_r11g11b10f.h"
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@
|
|||
#include "radv_buffer_view.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_image_view.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_video.h"
|
||||
|
|
@ -44,6 +44,7 @@
|
|||
#include "sid.h"
|
||||
#include "vk_debug_utils.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_render_pass.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "radv_device.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
|
||||
#include "vk_format.h"
|
||||
|
|
|
|||
|
|
@ -25,11 +25,13 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "vk_log.h"
|
||||
|
||||
#include "radv_image_view.h"
|
||||
#include "radv_buffer_view.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#include "gfx10_format_table.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,14 +25,23 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_VALGRIND
|
||||
#include <memcheck.h>
|
||||
#include <valgrind.h>
|
||||
#define VG(x) x
|
||||
#else
|
||||
#define VG(x) ((void)0)
|
||||
#endif
|
||||
|
||||
#include "radv_instance.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_wsi.h"
|
||||
|
||||
#include "util/driconf.h"
|
||||
|
||||
#include "vk_instance.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
static const struct debug_control radv_debug_options[] = {{"nofastclears", RADV_DEBUG_NO_FAST_CLEARS},
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
#include "nir/nir.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_llvm_helper.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
#include "ac_perfcounter.h"
|
||||
#include "amdgfxregs.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_perfcounter.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_sqtt.h"
|
||||
#include "sid.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,15 +31,18 @@
|
|||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "vk_log.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/hex.h"
|
||||
#include "util/u_debug.h"
|
||||
#include "radv_android.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_instance.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_video.h"
|
||||
#include "radv_wsi.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
|
@ -54,6 +53,7 @@
|
|||
#include "sid.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_nir_convert_ycbcr.h"
|
||||
#include "vk_ycbcr_conversion.h"
|
||||
|
||||
bool
|
||||
radv_shader_need_indirect_descriptor_sets(const struct radv_shader *shader)
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
#include "aco_interface.h"
|
||||
#include "nir_serialize.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_shader.h"
|
||||
#include "vk_pipeline.h"
|
||||
#include "vk_util.h"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_pipeline_cache.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@
|
|||
#include "util/u_atomic.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_pipeline_cache.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
|
|
|||
|
|
@ -24,11 +24,14 @@
|
|||
#include "nir/nir.h"
|
||||
#include "nir/nir_builder.h"
|
||||
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
#include "nir/radv_nir.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_pipeline_cache.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "radv_printf.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_physical_device.h"
|
||||
|
||||
#include "util/hash_table.h"
|
||||
#include "util/strndup.h"
|
||||
|
|
|
|||
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2016 Red Hat.
|
||||
* Copyright © 2016 Bas Nieuwenhuizen
|
||||
*
|
||||
* based in part on anv driver which is:
|
||||
* Copyright © 2015 Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef RADV_PRIVATE_H
|
||||
#define RADV_PRIVATE_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_VALGRIND
|
||||
#include <memcheck.h>
|
||||
#include <valgrind.h>
|
||||
#define VG(x) x
|
||||
#else
|
||||
#define VG(x) ((void)0)
|
||||
#endif
|
||||
|
||||
#include "c11/threads.h"
|
||||
#ifndef _WIN32
|
||||
#include <amdgpu.h>
|
||||
#include <xf86drm.h>
|
||||
#endif
|
||||
#include "compiler/shader_enums.h"
|
||||
#include "util/bitscan.h"
|
||||
#include "util/detect_os.h"
|
||||
#include "util/list.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/rwlock.h"
|
||||
#include "util/xmlconfig.h"
|
||||
#include "vk_alloc.h"
|
||||
#include "vk_command_pool.h"
|
||||
#include "vk_debug_report.h"
|
||||
#include "vk_device.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_log.h"
|
||||
#include "vk_physical_device.h"
|
||||
#include "vk_shader_module.h"
|
||||
#include "vk_util.h"
|
||||
#include "vk_ycbcr_conversion.h"
|
||||
|
||||
#include "ac_binary.h"
|
||||
#include "ac_gpu_info.h"
|
||||
#include "ac_shader_util.h"
|
||||
#include "ac_spm.h"
|
||||
#include "ac_sqtt.h"
|
||||
#include "ac_surface.h"
|
||||
#include "ac_vcn.h"
|
||||
#include "radv_cmd_buffer.h"
|
||||
#include "radv_constants.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_pipeline.h"
|
||||
#include "radv_pipeline_compute.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_queue.h"
|
||||
#include "radv_radeon_winsys.h"
|
||||
#include "radv_rra.h"
|
||||
#include "radv_shader.h"
|
||||
#include "radv_shader_args.h"
|
||||
#include "sid.h"
|
||||
|
||||
#include "radix_sort/radix_sort_vk_devaddr.h"
|
||||
|
||||
#include <vulkan/vk_android_native_buffer.h>
|
||||
#include <vulkan/vk_icd.h>
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vulkan_android.h>
|
||||
|
||||
#include "radv_entrypoints.h"
|
||||
|
||||
#include "wsi_common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* RADV_PRIVATE_H */
|
||||
|
|
@ -34,13 +34,14 @@
|
|||
#include "util/u_atomic.h"
|
||||
#include "vulkan/vulkan_core.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_perfcounter.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_query.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "sid.h"
|
||||
#include "vk_acceleration_structure.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
#include "vk_shader_module.h"
|
||||
|
||||
#define TIMESTAMP_NOT_READY UINT64_MAX
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
#include "radv_device_memory.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_printf.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_rmv.h"
|
||||
#include "vk_semaphore.h"
|
||||
#include "vk_sync.h"
|
||||
|
|
|
|||
|
|
@ -31,11 +31,12 @@
|
|||
#include <stdlib.h>
|
||||
#include "ac_gpu_info.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_descriptor_set.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_event.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_pipeline_rt.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_query.h"
|
||||
#include "radv_rmv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@
|
|||
#include "bvh/bvh.h"
|
||||
#include "util/half_float.h"
|
||||
#include "amd_family.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "vk_acceleration_structure.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,12 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_private.h"
|
||||
#include "vk_log.h"
|
||||
|
||||
#include "radv_sampler.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_physical_device.h"
|
||||
|
||||
static unsigned
|
||||
radv_tex_wrap(VkSamplerAddressMode address_mode)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_formats.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
struct radv_sdma_chunked_copy_info {
|
||||
unsigned extent_horizontal_blocks;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#define RADV_SDMA_H
|
||||
|
||||
#include "radv_image.h"
|
||||
#include "radv_private.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@
|
|||
#include "util/u_atomic.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_nir_to_llvm.h"
|
||||
#include "radv_printf.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_sdma.h"
|
||||
#include "radv_shader_args.h"
|
||||
|
||||
|
|
@ -52,6 +52,7 @@
|
|||
#endif
|
||||
#include "aco_interface.h"
|
||||
#include "sid.h"
|
||||
#include "vk_debug_report.h"
|
||||
#include "vk_format.h"
|
||||
#include "vk_nir.h"
|
||||
#include "vk_semaphore.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@
|
|||
*/
|
||||
|
||||
#include "radv_shader_args.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
struct user_sgpr_info {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@
|
|||
#include "nir/nir.h"
|
||||
#include "nir/nir_xfb_info.h"
|
||||
#include "nir/radv_nir.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_device.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_shader.h"
|
||||
|
||||
#include "ac_nir.h"
|
||||
|
|
|
|||
|
|
@ -21,9 +21,15 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_shader_object.h"
|
||||
#include "vk_log.h"
|
||||
|
||||
#include "radv_device.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_physical_device.h"
|
||||
#include "radv_pipeline_cache.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_pipeline_compute.h"
|
||||
#include "radv_pipeline_graphics.h"
|
||||
#include "radv_shader_object.h"
|
||||
|
||||
static void
|
||||
radv_shader_object_destroy_variant(struct radv_device *device, VkShaderCodeTypeEXT code_type,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_spm.h"
|
||||
#include "sid.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,13 @@
|
|||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_perfcounter.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_spm.h"
|
||||
#include "radv_sqtt.h"
|
||||
#include "sid.h"
|
||||
|
||||
#include "vk_command_pool.h"
|
||||
#include "vk_common_entrypoints.h"
|
||||
|
||||
#define SQTT_BUFFER_ALIGN_SHIFT 12
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
**************************************************************************/
|
||||
#include "radv_private.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#include "drm-uapi/amdgpu_drm.h"
|
||||
|
|
@ -41,6 +40,7 @@
|
|||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_device_memory.h"
|
||||
#include "radv_entrypoints.h"
|
||||
#include "radv_image.h"
|
||||
#include "radv_image_view.h"
|
||||
#include "radv_video.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
#include "meta/radv_meta.h"
|
||||
#include "util/macros.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_private.h"
|
||||
#include "vk_fence.h"
|
||||
#include "vk_semaphore.h"
|
||||
#include "vk_util.h"
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
#include "radv_amdgpu_surface.h"
|
||||
#include "util/bitset.h"
|
||||
#include "util/compiler.h"
|
||||
#include "radv_amdgpu_winsys.h"
|
||||
#include "radv_private.h"
|
||||
#include "sid.h"
|
||||
|
||||
#include "ac_surface.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue