xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/svga/svgadump/svga_shader_op.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright (c) 2008-2024 Broadcom. All Rights Reserved.
3  * The term “Broadcom” refers to Broadcom Inc.
4  * and/or its subsidiaries.
5  * SPDX-License-Identifier: MIT
6  */
7 
8 /**
9  * @file
10  * SVGA Shader Token Opcode Info
11  *
12  * @author Michal Krol <[email protected]>
13  */
14 
15 #ifndef SVGA_SHADER_OP_H
16 #define SVGA_SHADER_OP_H
17 
18 struct sh_opcode_info
19 {
20    const char *mnemonic;
21    unsigned num_dst:8;
22    unsigned num_src:8;
23    unsigned pre_dedent:1;
24    unsigned post_indent:1;
25    unsigned svga_opcode:16;
26 };
27 
28 const struct sh_opcode_info *svga_opcode_info( unsigned op );
29 
30 #endif /* SVGA_SHADER_OP_H */
31