mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 05:08:06 +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>
20 lines
450 B
C
20 lines
450 B
C
/* Copyright 2026 Valve Corporation
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef AC_CMDBUF_BASE_H
|
|
#define AC_CMDBUF_BASE_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
struct ac_cmdbuf {
|
|
uint32_t cdw; /* Number of used dwords. */
|
|
uint32_t max_dw; /* Maximum number of dwords. */
|
|
uint32_t reserved_dw; /* Number of dwords reserved. */
|
|
uint32_t *buf; /* The base pointer of the chunk. */
|
|
|
|
bool context_roll;
|
|
};
|
|
|
|
#endif
|