radv: add radv_wsi.h

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28526>
This commit is contained in:
Samuel Pitoiset 2024-04-02 09:17:08 +02:00 committed by Marge Bot
parent bfaa674583
commit cefbfe6597
5 changed files with 40 additions and 3 deletions

View file

@ -168,6 +168,7 @@ libradv_files = files(
'radv_video.c',
'radv_video.h',
'radv_wsi.c',
'radv_wsi.h',
'si_cmd_buffer.c',
)

View file

@ -38,6 +38,7 @@
#include "radv_pipeline_rt.h"
#include "radv_private.h"
#include "radv_video.h"
#include "radv_wsi.h"
#ifdef _WIN32
typedef void *drmDevicePtr;

View file

@ -212,9 +212,6 @@ struct rvcn_decode_buffer_s;
/* queue types */
VkResult radv_init_wsi(struct radv_physical_device *pdev);
void radv_finish_wsi(struct radv_physical_device *pdev);
struct radv_shader_binary_part;

View file

@ -23,6 +23,7 @@
* IN THE SOFTWARE.
*/
#include "radv_wsi.h"
#include "meta/radv_meta.h"
#include "util/macros.h"
#include "radv_debug.h"

37
src/amd/vulkan/radv_wsi.h Normal file
View file

@ -0,0 +1,37 @@
/*
* 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_WSI_H
#define RADV_WSI_H
#include "radv_physical_device.h"
VkResult radv_init_wsi(struct radv_physical_device *pdev);
void radv_finish_wsi(struct radv_physical_device *pdev);
#endif /* RADV_WSI_H */