• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2012 Advanced Micro Devices, Inc.
3  *
4  * SPDX-License-Identifier: MIT
5  */
6 
7 #ifndef AC_CMDBUF_H
8 #define AC_CMDBUF_H
9 
10 #include <inttypes.h>
11 
12 #include "ac_pm4.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 struct ac_preamble_state {
19    uint64_t border_color_va;
20 
21    struct {
22       bool cache_rb_gl2;
23    } gfx10;
24 
25    struct {
26       uint32_t compute_dispatch_interleave;
27    } gfx11;
28 };
29 
30 void
31 ac_init_compute_preamble_state(const struct ac_preamble_state *state,
32                                struct ac_pm4_state *pm4);
33 
34 void
35 ac_init_graphics_preamble_state(const struct ac_preamble_state *state,
36                                 struct ac_pm4_state *pm4);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42 #endif
43