File tree Expand file tree Collapse file tree 1 file changed +6
-25
lines changed Expand file tree Collapse file tree 1 file changed +6
-25
lines changed Original file line number Diff line number Diff line change @@ -137,37 +137,18 @@ bool support16BitImmSrcForMad() const {
137
137
return (m_platformInfo.eRenderCoreFamily >= IGFX_GEN10_CORE);
138
138
}
139
139
140
- // This function is for handling special cases,
141
- // where simple >= comparison between products/cores doesn't produce expected results.
140
+ // This function checks if product is child of another product
142
141
bool isProductChildOf (PRODUCT_FAMILY product) const
143
142
{
144
- bool result;
145
- switch (product) {
146
- case IGFX_PVC:
147
- result = isCoreChildOf (IGFX_XE_HPC_CORE);
148
- break ;
149
- case IGFX_XE_HP_SDV:
150
- result = isCoreChildOf (IGFX_XE_HP_CORE);
151
- break ;
152
- case IGFX_DG2:
153
- result = isCoreChildOf (IGFX_XE_HPG_CORE);
154
- break ;
155
- default :
156
- result = m_platformInfo.eProductFamily >= product;
157
- break ;
158
- }
159
- return result;
143
+ if (product == IGFX_PVC)
144
+ return isCoreChildOf (IGFX_XE_HPC_CORE);
145
+ return m_platformInfo.eProductFamily >= product;
160
146
}
161
147
148
+ // This function checks if core is child of another core
162
149
bool isCoreChildOf (GFXCORE_FAMILY core) const
163
150
{
164
- bool result;
165
- switch (core) {
166
- default :
167
- result = m_platformInfo.eRenderCoreFamily >= core;
168
- break ;
169
- }
170
- return result;
151
+ return m_platformInfo.eRenderCoreFamily >= core;
171
152
}
172
153
173
154
bool supports8DWLSCMessage () const {
You can’t perform that action at this time.
0 commit comments