mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 10:28:11 +02:00
Reported by clang tools. See: https://clangd.llvm.org/guides/include-cleaner struct ac_cmdbuf had to be moved to ac_cmdbuf_base.h because we can't include ac_cmdbuf.h->sid.h->amdgfxregs.h in radeon_winsys.h for r300. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41091>
47 lines
1.9 KiB
C
47 lines
1.9 KiB
C
/*
|
|
* Copyright © 2017 Advanced Micro Devices, Inc.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef AC_NIR__SURFACE_H
|
|
#define AC_NIR__SURFACE_H
|
|
|
|
#include "ac_surface.h"
|
|
#include "amd_family.h"
|
|
#include "nir_defines.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
nir_def *ac_nir_dcc_addr_from_coord(nir_builder *b, enum amd_gfx_level gfx_level,
|
|
uint32_t gb_addr_config,
|
|
unsigned bpe, const struct gfx9_meta_equation *equation,
|
|
nir_def *dcc_pitch, nir_def *dcc_height,
|
|
nir_def *dcc_slice_size,
|
|
nir_def *x, nir_def *y, nir_def *z,
|
|
nir_def *sample, nir_def *pipe_xor);
|
|
|
|
nir_def *ac_nir_cmask_addr_from_coord(nir_builder *b, enum amd_gfx_level gfx_level,
|
|
uint32_t gb_addr_config,
|
|
const struct gfx9_meta_equation *equation,
|
|
nir_def *cmask_pitch, nir_def *cmask_height,
|
|
nir_def *cmask_slice_size,
|
|
nir_def *x, nir_def *y, nir_def *z,
|
|
nir_def *pipe_xor,
|
|
nir_def **bit_position);
|
|
|
|
nir_def *ac_nir_htile_addr_from_coord(nir_builder *b, enum amd_gfx_level gfx_level,
|
|
uint32_t gb_addr_config,
|
|
const struct gfx9_meta_equation *equation,
|
|
nir_def *htile_pitch,
|
|
nir_def *htile_slice_size,
|
|
nir_def *x, nir_def *y, nir_def *z,
|
|
nir_def *pipe_xor);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* AC_NIR__SURFACE_H */
|