xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/r300/r300_tgsi_to_rc.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright 2009 Nicolai Hähnle <[email protected]>
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef R300_TGSI_TO_RC_H
7 #define R300_TGSI_TO_RC_H
8 
9 #include "util/compiler.h"
10 
11 struct radeon_compiler;
12 
13 struct tgsi_full_declaration;
14 struct tgsi_shader_info;
15 struct tgsi_token;
16 
17 struct swizzled_imms {
18     unsigned index;
19     unsigned swizzle;
20 };
21 
22 struct tgsi_to_rc {
23     struct radeon_compiler * compiler;
24     const struct tgsi_shader_info * info;
25 
26     int immediate_offset;
27 
28     /* If an error occurred. */
29     bool error;
30 };
31 
32 void r300_tgsi_to_rc(struct tgsi_to_rc * ttr, const struct tgsi_token * tokens);
33 
34 #endif /* R300_TGSI_TO_RC_H */
35