1 /***************************************************************************
2 * Copyright (C) 2010 PCSX4ALL Team *
3 * Copyright (C) 2010 Unai *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
19 ***************************************************************************/
24 ///////////////////////////////////////////////////////////////////////////////
25 // GPU global definitions
26 #define FRAME_BUFFER_SIZE (1024*512*2)
27 #define FRAME_WIDTH 1024
28 #define FRAME_HEIGHT 512
29 #define FRAME_OFFSET(x,y) (((y)<<10)+(x))
31 #define VIDEO_WIDTH 320
34 typedef signed short s16;
35 typedef signed int s32;
36 typedef signed long long s64;
38 typedef unsigned char u8;
39 typedef unsigned short u16;
40 typedef unsigned int u32;
41 typedef unsigned long long u64;
43 #include "gpu_fixedpoint.h"
45 ///////////////////////////////////////////////////////////////////////////////
48 extern bool enableAbbeyHack;
52 ///////////////////////////////////////////////////////////////////////////////
53 // interlaced rendering
54 extern int linesInterlace_user;
55 extern bool progressInterlace;
64 unsigned char FrameBuffer[1024*512*2];
80 ///////////////////////////////////////////////////////////////////////////////
83 //#define ENABLE_GPU_NULL_SUPPORT // Enables NullGPU support
84 //#define ENABLE_GPU_LOG_SUPPORT // Enables gpu logger, very slow only for windows debugging
86 ///////////////////////////////////////////////////////////////////////////////