radv: add radv_cp_reg_shadowing.h
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28551>
This commit is contained in:
committed by
Marge Bot
parent
195383a5ec
commit
d1adbf0e53
@@ -112,6 +112,7 @@ libradv_files = files(
|
||||
'radv_cmd_buffer.c',
|
||||
'radv_cmd_buffer.h',
|
||||
'radv_cp_reg_shadowing.c',
|
||||
'radv_cp_reg_shadowing.h',
|
||||
'radv_cs.h',
|
||||
'radv_debug.c',
|
||||
'radv_debug.h',
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_cp_reg_shadowing.h"
|
||||
#include "ac_shadowed_regs.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_cs.h"
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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_CP_REG_SHADOWING_H
|
||||
#define RADV_CP_REG_SHADOWING_H
|
||||
|
||||
#include "radv_radeon_winsys.h"
|
||||
|
||||
struct radv_device;
|
||||
struct radv_queue_state;
|
||||
struct radv_queue;
|
||||
|
||||
VkResult radv_create_shadow_regs_preamble(struct radv_device *device, struct radv_queue_state *queue_state);
|
||||
|
||||
void radv_destroy_shadow_regs_preamble(struct radv_device *device, struct radv_queue_state *queue_state,
|
||||
struct radeon_winsys *ws);
|
||||
|
||||
void radv_emit_shadow_regs_preamble(struct radeon_cmdbuf *cs, const struct radv_device *device,
|
||||
struct radv_queue_state *queue_state);
|
||||
|
||||
VkResult radv_init_shadowed_regs_buffer_state(const struct radv_device *device, struct radv_queue *queue);
|
||||
|
||||
#endif /* RADV_CP_REG_SHADOWING_H */
|
||||
@@ -250,12 +250,6 @@ void radv_write_scissors(struct radeon_cmdbuf *cs, int count, const VkRect2D *sc
|
||||
void radv_write_guardband(struct radeon_cmdbuf *cs, int count, const VkViewport *viewports, unsigned rast_prim,
|
||||
unsigned polygon_mode, float line_width);
|
||||
|
||||
VkResult radv_create_shadow_regs_preamble(struct radv_device *device, struct radv_queue_state *queue_state);
|
||||
void radv_destroy_shadow_regs_preamble(struct radv_device *device, struct radv_queue_state *queue_state,
|
||||
struct radeon_winsys *ws);
|
||||
void radv_emit_shadow_regs_preamble(struct radeon_cmdbuf *cs, const struct radv_device *device,
|
||||
struct radv_queue_state *queue_state);
|
||||
VkResult radv_init_shadowed_regs_buffer_state(const struct radv_device *device, struct radv_queue *queue);
|
||||
|
||||
uint32_t radv_get_ia_multi_vgt_param(struct radv_cmd_buffer *cmd_buffer, bool instanced_draw, bool indirect_draw,
|
||||
bool count_from_stream_output, uint32_t draw_vertex_count, unsigned topology,
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "radv_queue.h"
|
||||
#include "radv_buffer.h"
|
||||
#include "radv_cp_reg_shadowing.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_device_memory.h"
|
||||
|
||||
Reference in New Issue
Block a user