/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Mem_Swizzle.h
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/Mem_Swizzle.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (show annotations) (download)
Sun Dec 26 18:56:19 2010 UTC (9 years, 2 months ago) by william
File MIME type: text/plain
File size: 2858 byte(s)
** merged upstream r4049 (re-integration of GregMiscellaneous branch)
** applied patched to GigTranser.cpp in ZZOgl from r4140 to change 'static int count = 0;' to 'static int path1_count = 0;')
1 /* ZZ Open GL graphics plugin
2 * Copyright (c)2009-2010 zeydlitz@gmail.com, arcum42@gmail.com
3 * Based on Zerofrog's ZeroGS KOSMOS (c)2005-2008
4 *
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.
9 *
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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20 #ifndef MEM_SWIZZLE_H_INCLUDED
21 #define MEM_SWIZZLE_H_INCLUDED
22
23 #include "GS.h"
24 #include "Mem.h"
25 #include "x86.h"
26
27 extern __forceinline void SwizzleBlock32(u8 *dst, u8 *src, int pitch);
28 extern __forceinline void SwizzleBlock16(u8 *dst, u8 *src, int pitch);
29 extern __forceinline void SwizzleBlock8(u8 *dst, u8 *src, int pitch);
30 extern __forceinline void SwizzleBlock4(u8 *dst, u8 *src, int pitch);
31 extern __forceinline void SwizzleBlock32u(u8 *dst, u8 *src, int pitch);
32 extern __forceinline void SwizzleBlock16u(u8 *dst, u8 *src, int pitch);
33 extern __forceinline void SwizzleBlock8u(u8 *dst, u8 *src, int pitch);
34 extern __forceinline void SwizzleBlock4u(u8 *dst, u8 *src, int pitch);
35
36 extern __forceinline void __fastcall SwizzleBlock32_c(u8* dst, u8* src, int srcpitch);
37 extern __forceinline void __fastcall SwizzleBlock16_c(u8* dst, u8* src, int srcpitch);
38 extern __forceinline void __fastcall SwizzleBlock8_c(u8* dst, u8* src, int srcpitch);
39 extern __forceinline void __fastcall SwizzleBlock4_c(u8* dst, u8* src, int srcpitch);
40
41 // special swizzle macros - which I converted to functions.
42 extern __forceinline void SwizzleBlock24(u8 *dst, u8 *src, int pitch);
43 extern __forceinline void SwizzleBlock8H(u8 *dst, u8 *src, int pitch);
44 extern __forceinline void SwizzleBlock4HH(u8 *dst, u8 *src, int pitch);
45 extern __forceinline void SwizzleBlock4HL(u8 *dst, u8 *src, int pitch);
46 #define SwizzleBlock24u SwizzleBlock24
47 #define SwizzleBlock8Hu SwizzleBlock8H
48 #define SwizzleBlock4HHu SwizzleBlock4HH
49 #define SwizzleBlock4HLu SwizzleBlock4HL
50
51 #define SwizzleBlock16S SwizzleBlock16
52 #define SwizzleBlock32Z SwizzleBlock32
53 #define SwizzleBlock24Z SwizzleBlock24
54 #define SwizzleBlock16Z SwizzleBlock16
55 #define SwizzleBlock16SZ SwizzleBlock16
56
57 #define SwizzleBlock16Su SwizzleBlock16u
58 #define SwizzleBlock32Zu SwizzleBlock32u
59 #define SwizzleBlock24Zu SwizzleBlock24u
60 #define SwizzleBlock16Zu SwizzleBlock16u
61 #define SwizzleBlock16SZu SwizzleBlock16u
62
63 #endif // MEM_SWIZZLE_H_INCLUDED

  ViewVC Help
Powered by ViewVC 1.1.22