xref: /aosp_15_r20/external/gmmlib/Source/GmmLib/ULT/stdafx.h (revision 35ffd701415c9e32e53136d61a677a8d0a8fc4a5)
1*35ffd701SAndroid Build Coastguard Worker /*==============================================================================
2*35ffd701SAndroid Build Coastguard Worker Copyright(c) 2017 Intel Corporation
3*35ffd701SAndroid Build Coastguard Worker 
4*35ffd701SAndroid Build Coastguard Worker Permission is hereby granted, free of charge, to any person obtaining a
5*35ffd701SAndroid Build Coastguard Worker copy of this software and associated documentation files(the "Software"),
6*35ffd701SAndroid Build Coastguard Worker to deal in the Software without restriction, including without limitation
7*35ffd701SAndroid Build Coastguard Worker the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*35ffd701SAndroid Build Coastguard Worker and / or sell copies of the Software, and to permit persons to whom the
9*35ffd701SAndroid Build Coastguard Worker Software is furnished to do so, subject to the following conditions:
10*35ffd701SAndroid Build Coastguard Worker 
11*35ffd701SAndroid Build Coastguard Worker The above copyright notice and this permission notice shall be included
12*35ffd701SAndroid Build Coastguard Worker in all copies or substantial portions of the Software.
13*35ffd701SAndroid Build Coastguard Worker 
14*35ffd701SAndroid Build Coastguard Worker THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15*35ffd701SAndroid Build Coastguard Worker OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*35ffd701SAndroid Build Coastguard Worker FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17*35ffd701SAndroid Build Coastguard Worker THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*35ffd701SAndroid Build Coastguard Worker OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*35ffd701SAndroid Build Coastguard Worker ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*35ffd701SAndroid Build Coastguard Worker OTHER DEALINGS IN THE SOFTWARE.
21*35ffd701SAndroid Build Coastguard Worker ============================================================================*/
22*35ffd701SAndroid Build Coastguard Worker 
23*35ffd701SAndroid Build Coastguard Worker 
24*35ffd701SAndroid Build Coastguard Worker //Abstract:   include file for standard system include files,
25*35ffd701SAndroid Build Coastguard Worker //            or project specific include files that are used frequently
26*35ffd701SAndroid Build Coastguard Worker 
27*35ffd701SAndroid Build Coastguard Worker 
28*35ffd701SAndroid Build Coastguard Worker #pragma once
29*35ffd701SAndroid Build Coastguard Worker #ifndef _WIN32
30*35ffd701SAndroid Build Coastguard Worker #include "../../inc/portable_compiler.h"
31*35ffd701SAndroid Build Coastguard Worker #endif
32*35ffd701SAndroid Build Coastguard Worker 
33*35ffd701SAndroid Build Coastguard Worker 
34*35ffd701SAndroid Build Coastguard Worker #include "targetver.h"
35*35ffd701SAndroid Build Coastguard Worker #include <stdio.h>
36*35ffd701SAndroid Build Coastguard Worker #include <math.h>
37*35ffd701SAndroid Build Coastguard Worker #ifdef _WIN32
38*35ffd701SAndroid Build Coastguard Worker #include <tchar.h>
39*35ffd701SAndroid Build Coastguard Worker #include <windows.h>
40*35ffd701SAndroid Build Coastguard Worker #endif
41*35ffd701SAndroid Build Coastguard Worker #include <iostream>
42*35ffd701SAndroid Build Coastguard Worker #include "gtest.h"
43*35ffd701SAndroid Build Coastguard Worker 
44*35ffd701SAndroid Build Coastguard Worker #ifdef __cplusplus
45*35ffd701SAndroid Build Coastguard Worker extern "C" {
46*35ffd701SAndroid Build Coastguard Worker #endif
47*35ffd701SAndroid Build Coastguard Worker 
48*35ffd701SAndroid Build Coastguard Worker #include "sharedata.h"
49*35ffd701SAndroid Build Coastguard Worker #include "../../inc/common/igfxfmid.h"
50*35ffd701SAndroid Build Coastguard Worker #include "../../inc/common/sku_wa.h"
51*35ffd701SAndroid Build Coastguard Worker #include "../../inc/common/gfxmacro.h"
52*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmCommonExt.h"
53*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmPlatformExt.h"
54*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmCachePolicy.h"
55*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmTextureExt.h"
56*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmResourceInfoExt.h"
57*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmResourceInfo.h"
58*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmUtil.h"
59*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmInfoExt.h"
60*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmInfo.h"
61*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmClientContext.h"
62*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmPageTableMgr.h"
63*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmLibDll.h"
64*35ffd701SAndroid Build Coastguard Worker #include "../inc/External/Common/GmmLibDllName.h"
65*35ffd701SAndroid Build Coastguard Worker 
66*35ffd701SAndroid Build Coastguard Worker #ifdef __cplusplus
67*35ffd701SAndroid Build Coastguard Worker }
68*35ffd701SAndroid Build Coastguard Worker #endif
69*35ffd701SAndroid Build Coastguard Worker 
70*35ffd701SAndroid Build Coastguard Worker #ifndef NT_SUCCESS
71*35ffd701SAndroid Build Coastguard Worker #define NT_SUCCESS(Status)                      ((NTSTATUS)(Status) >= 0)
72*35ffd701SAndroid Build Coastguard Worker #endif
73*35ffd701SAndroid Build Coastguard Worker 
74*35ffd701SAndroid Build Coastguard Worker #ifndef STATUS_UNSUCCESSFUL
75*35ffd701SAndroid Build Coastguard Worker #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
76*35ffd701SAndroid Build Coastguard Worker #endif
77*35ffd701SAndroid Build Coastguard Worker 
78*35ffd701SAndroid Build Coastguard Worker #ifndef STATUS_SUCCESS
79*35ffd701SAndroid Build Coastguard Worker #define STATUS_SUCCESS   ((NTSTATUS)0x00000000L)
80*35ffd701SAndroid Build Coastguard Worker #endif
81*35ffd701SAndroid Build Coastguard Worker 
82*35ffd701SAndroid Build Coastguard Worker extern int g_argc;
83*35ffd701SAndroid Build Coastguard Worker extern char** g_argv;
84*35ffd701SAndroid Build Coastguard Worker 
85