• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" ?>
2
3<!--
4Copyright © 2022 Imagination Technologies Ltd.
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice (including the next
14paragraph) shall be included in all copies or substantial portions of the
15Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23SOFTWARE.
24-->
25
26<csbgen name="ROGUE" prefix="PDSINST">
27
28	<enum name="CMODE_LD">
29		<value name="CACHED"          value="0"/>
30		<value name="BYPASS"          value="1"/>
31		<value name="FORCE_LINE_FILL" value="2"/>
32	</enum>
33
34	<enum name="DOUTD_DEST">
35		<value name="UNIFIED_STORE" value="0"/>
36		<value name="COMMON_STORE"  value="1"/>
37	</enum>
38
39	<enum name="DOUTI_SHADEMODEL">
40		<value name="FLAT_VERTEX0" value="0"/>
41		<value name="FLAT_VERTEX1" value="1"/>
42		<value name="FLAT_VERTEX2" value="2"/>
43		<value name="GOURUAD"      value="3"/>
44	</enum>
45
46	<enum name="DOUTI_SIZE">
47		<value name="1D" value="0"/>
48		<value name="2D" value="1"/>
49		<value name="3D" value="2"/>
50		<value name="4D" value="3"/>
51	</enum>
52
53	<enum name="DOUTU_SAMPLE_RATE">
54		<value name="INSTANCE"  value="0"/>
55		<value name="SELECTIVE" value="1"/>
56		<value name="FULL"      value="2"/>
57	</enum>
58
59	<enum name="SLC_MODE_LD">
60		<value name="BYPASS"       value="0"/>
61		<value name="CACHED"       value="1"/>
62		<value name="CACHED_RD_NA" value="3"/>
63	</enum>
64
65	<enum name="WORDSIZE">
66		<value name="ONE"   value="0"/>
67		<value name="TWO"   value="1"/>
68		<value name="THREE" value="2"/>
69		<value name="FOUR"  value="3"/>
70	</enum>
71
72	<struct name="DOUTU_SRC0" length="2">
73		<field name="dual_phase" start="41" end ="41" type="bool"/>
74		<field name="temps" start="35" end="40" type="uint">
75			<define name="UNIT_SIZE" value="2"/>
76		</field>
77		<field name="sample_rate" start="33" end="34" type="DOUTU_SAMPLE_RATE"/>
78		<field name="exe_off" start="2" end="31" shift="2" type="address"/>
79	</struct>
80
81	<struct name="DOUT_FIELDS_DOUTD_SRC0" length="2">
82		<condition type="if" check="SLC_MCU_CACHE_CONTROLS"/>
83			<field name="slcmode" start="60" end="61" type="SLC_MODE_LD"/>
84		<condition type="endif" check="SLC_MCU_CACHE_CONTROLS"/>
85		<field name="doffset" start="40" end="52" type="uint"/>
86		<field name="sbase" start="0" end="39" shift="0" type="address"/>
87	</struct>
88
89	<struct name="DOUT_FIELDS_DOUTD_SRC1" length="1">
90		<field name="last" start="31" end="31" type="bool"/>
91		<field name="wordsize" start="29" end="30" type="WORDSIZE"/>
92		<field name="dest" start="28" end="28" type="DOUTD_DEST"/>
93		<field name="cmode" start="26" end="27" type="CMODE_LD"/>
94		<field name="a0" start="13" end="25" type="uint">
95			<define name="UNIT_SIZE" value="4"/>
96		</field>
97		<field name="repeat" start="12" end="12" type="bool"/>
98		<field name="bsize" start="0" end="11" type="uint"/>
99	</struct>
100
101	<struct name="DOUT_FIELDS_DOUTI_SRC" length="1">
102		<field name="depthbias" start="27" end="27" type="bool"/>
103		<field name="primitiveid" start="26" end="26" type="bool"/>
104		<field name="shademodel" start="24" end="25" type="DOUTI_SHADEMODEL"/>
105		<field name="pointsprite" start="23" end="23" type="bool"/>
106		<field name="wraps" start="22" end="22" type="bool"/>
107		<field name="wrapv" start="21" end="21" type="bool"/>
108		<field name="wrapu" start="20" end="20" type="bool"/>
109		<field name="size" start="18" end="19" type="DOUTI_SIZE"/>
110		<field name="f16" start="17" end="17" type="bool"/>
111		<field name="perspective" start="16" end="16" type="bool"/>
112		<field name="f32_offset" start="8" end="15" type="uint"/>
113		<field name="f16_offset" start="0" end="7" type="uint"/>
114	</struct>
115
116</csbgen>
117