• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2022 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21  * IN THE SOFTWARE.
22  */
23 
24 #ifndef BRW_PRIM_H
25 #define BRW_PRIM_H
26 
27 #define _3DPRIM_POINTLIST         0x01
28 #define _3DPRIM_LINELIST          0x02
29 #define _3DPRIM_LINESTRIP         0x03
30 #define _3DPRIM_TRILIST           0x04
31 #define _3DPRIM_TRISTRIP          0x05
32 #define _3DPRIM_TRIFAN            0x06
33 #define _3DPRIM_QUADLIST          0x07
34 #define _3DPRIM_QUADSTRIP         0x08
35 #define _3DPRIM_LINELIST_ADJ      0x09 /* G45+ */
36 #define _3DPRIM_LINESTRIP_ADJ     0x0A /* G45+ */
37 #define _3DPRIM_TRILIST_ADJ       0x0B /* G45+ */
38 #define _3DPRIM_TRISTRIP_ADJ      0x0C /* G45+ */
39 #define _3DPRIM_TRISTRIP_REVERSE  0x0D
40 #define _3DPRIM_POLYGON           0x0E
41 #define _3DPRIM_RECTLIST          0x0F
42 #define _3DPRIM_LINELOOP          0x10
43 #define _3DPRIM_POINTLIST_BF      0x11
44 #define _3DPRIM_LINESTRIP_CONT    0x12
45 #define _3DPRIM_LINESTRIP_BF      0x13
46 #define _3DPRIM_LINESTRIP_CONT_BF 0x14
47 #define _3DPRIM_TRIFAN_NOSTIPPLE  0x16
48 #define _3DPRIM_PATCHLIST(n) ({ assert(n > 0 && n <= 32); 0x20 + (n - 1); })
49 
50 #endif /* BRW_PRIM_H */
51