Commit graph

2309 commits

Author SHA1 Message Date
Sam Lantinga
8dd6b2373b Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

Modified UpdateTexture to lock and unlock DirectFB-Surface.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402603
2007-08-15 03:19:21 +00:00
Sam Lantinga
e00aa0f597 Fixed crash setting 0 bpp video mode.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402602
2007-08-15 03:18:24 +00:00
Sam Lantinga
dc8a201235 Added SSE version of SDL_FillRect() for 32-bit ARGB surfaces
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402601
2007-08-13 06:24:56 +00:00
Sam Lantinga
6d80d8fe14 Shark rules!
* Loop optimization for Mac OS X - should this generally be applied?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402600
2007-08-13 03:03:23 +00:00
Sam Lantinga
5fca3f7890 Advertise the most efficient format for the screen. Of course SDL code needs
to be fixed to handle framebuffers with alpha...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402599
2007-08-13 02:38:59 +00:00
Sam Lantinga
438f7083d8 This is byte order dependent.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402598
2007-08-12 18:53:51 +00:00
Sam Lantinga
e7a82e9f88 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402597
2007-08-12 18:44:49 +00:00
Sam Lantinga
b88bb33e97 Gained 5 FPS in testsprite because Mac OS X memset is highly optimized
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402596
2007-08-12 18:27:44 +00:00
Sam Lantinga
cbc3f4b4c4 Test using glTextureRangeAPPLE
This actually ends up being quite a bit slower on my MacBook, but I'm
checking it in to test on a PPC iMac.

Maybe someone knows why it's slower?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402595
2007-08-12 16:53:58 +00:00
Sam Lantinga
1d36dcc958 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402594
2007-08-12 16:26:10 +00:00
Sam Lantinga
83bd10d135 Fixed compiling the Altivec blit code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402593
2007-08-12 15:41:36 +00:00
Sam Lantinga
a2f5eab988 Optimized OpenGL renderer for Mac OS X.
The SDL 1.2 API version of testsprite went from 120 FPS to 320 FPS. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402592
2007-08-12 07:02:28 +00:00
Sam Lantinga
6ca6ba5a6b Fixed crash if conversion fails. Use ISO name for Latin-1
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402591
2007-08-12 05:48:51 +00:00
Sam Lantinga
4b1e7aae98 Fixed compile warnings with Visual C++
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402590
2007-08-12 00:01:41 +00:00
Sam Lantinga
7d034dcfb1 Exported the software renderer texture functions to make easier to create
a renderer based on a framebuffer.

Fixed an initialization bug with the dummy video display mode.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402589
2007-08-11 23:26:03 +00:00
Sam Lantinga
2de3ba209d Date: Sat, 11 Aug 2007 02:03:16 +0200 (CEST)
From: couriersud arcor.de
To: slouken@libsdl.org
Subject: Directfb driver for SDL1.3

Hi,

the attachment contains a patch for a SDL1.3 directfb driver. It supports:

- Renderer "directfb":

Hardware acceleration as supported by the underlying directfb driver. With a
radeon X850, testsprite2 runs at 50% to 70% of OpenGL (X11, dri) performance.

Also supports hardware accelerated yuv overlays. This must be enabled by sett
ing:

export SDL_DIRECTFB_YUV_DIRECT=1

- Renderer "opengl"

Supports software opengl using mesa opengl (make linux-directfb).

Some more information may be found in README.DirectFB

There will certainly still be some bugs, and there is some debug code around.
 When I find some time, I will compile against directfb-0.9.25 as distributed
 with ubuntu 7.04.

The diff also contains a fix for SDL_LockYUVOverlay fixing a bug in  *pixels
and pitches initialization.

Kind regards,

couriersud

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402588
2007-08-11 21:51:19 +00:00
Sam Lantinga
fa64b7b113 Updated the credits for SDL 1.3
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402587
2007-08-11 21:44:49 +00:00
Sam Lantinga
60cc07ddbf Whoops, it's not quite that easy - fixed bug in SDL_ClearDirtyRects()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402586
2007-08-11 21:42:36 +00:00
Sam Lantinga
1c3727d1db Optimized dirty rect code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402585
2007-08-11 21:34:08 +00:00
Sam Lantinga
6b348f07c7 Emphasized the separation between SDL_Surface and SDL_Texture
- SDL_Surface is a system memory representation of pixel data
 - SDL_Texture is a video memory representation of pixel data

The concept of SDL_Surface with SDL_HWSURFACE is no longer used.

Separated SDL_Texture types by usage rather than memory type
 - SDL_TEXTUREACCESS_STATIC is for rarely changed pixel data,
   can be placed in video memory.
 - SDL_TEXTUREACCESS_STREAMING is for frequently changing pixel
   data, usually placed in system memory or AGP memory.

Optimized the SDL_compat usage of the OpenGL renderer by only
using one copy of the framebuffer instead of two.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402584
2007-08-11 20:54:31 +00:00
Sam Lantinga
c1a200fa1d indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402583
2007-08-11 20:46:24 +00:00
Sam Lantinga
838787d358 Don't run indent on the Xcode templates
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402582
2007-08-11 18:51:12 +00:00
Sam Lantinga
22170d41cd Figured out how to optimize the SDL_compat path and simplify writing framebuffer drivers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402581
2007-08-10 16:03:35 +00:00
Sam Lantinga
fee28b42b4 1.3 video API design chat
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402580
2007-08-07 07:08:25 +00:00
Sam Lantinga
74f6381b6c Some thoughts on 1.3 video written down
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402579
2007-08-07 06:04:27 +00:00
Bob Pendleton
c113a55054 changed to use SDL_realloc()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402576
2007-07-26 17:58:17 +00:00
Bob Pendleton
a2ae281558 make indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402575
2007-07-25 21:23:28 +00:00
Bob Pendleton
bec234395c Added gamma table support to X11. Also now supports DirectColor visuals.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402574
2007-07-25 21:22:55 +00:00
Bob Pendleton
7d8af0a113 make indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402573
2007-07-24 18:46:45 +00:00
Sam Lantinga
3c6eee13ae Switched afxres.h to winresrc.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402571
2007-07-23 18:46:09 +00:00
Bob Pendleton
b6d3eab4b2 Oops, meant PsuedoColor not TrueColor
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402569
2007-07-23 16:55:38 +00:00
Sam Lantinga
87f2e5ee92 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402567
2007-07-23 01:17:38 +00:00
Sam Lantinga
8b728544ee Added support for the --depth command line option
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402566
2007-07-23 01:11:52 +00:00
Sam Lantinga
9524d51857 Fixed bug #467
Remove trailing commas from enums

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402565
2007-07-22 13:22:47 +00:00
Sam Lantinga
316a61731f Unpacked project archives to get individual file history in subversion
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402564
2007-07-21 17:09:01 +00:00
Sam Lantinga
98ce0f8871 Better windres detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402554
2007-07-18 04:05:40 +00:00
Sam Lantinga
eba7e38433 Fixed bug #460
Added SDL_VIDEO_OPENGL_CGL to the default Mac OS X config file.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402552
2007-07-16 14:19:47 +00:00
Sam Lantinga
2094bfe8bf Added support for building version.rc in Windows build.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402549
2007-07-16 03:28:48 +00:00
Sam Lantinga
b22dc76535 Fixed bug #428
This fix is overkill, but approved by Doug Lea, and he'll be releasing a
new version of his malloc.c sometime next month.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402547
2007-07-16 00:08:35 +00:00
Sam Lantinga
304c4a50b8 Merged fix for bug #457 from SDL 1.2
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402545
2007-07-15 21:54:16 +00:00
Sam Lantinga
e2898c73af indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402544
2007-07-15 21:53:51 +00:00
Ryan C. Gordon
b98b6308d1 Merged r3292:3293 from branches/SDL-1.2: testjoystick verbose info.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402539
2007-07-15 17:25:59 +00:00
Sam Lantinga
6793a28d06 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402537
2007-07-15 16:59:16 +00:00
Sam Lantinga
cfcb0787d2 Split acinclude.m4 into its component parts for easy updating
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402532
2007-07-15 01:51:11 +00:00
Ryan C. Gordon
01b58163f3 Merged r3261:3262 from branches/SDL-1.2: MMX/YUV with __OPTIMIZE__.
"Mac OS X/x86 won't build the MMX/YUV inline assembly without optimizations
 enabled (not enough registers), so for now, we only build it if we see
 the __OPTIMIZE__ #define, which GCC provides when you build at -O1 or higher."

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402528
2007-07-14 07:28:45 +00:00
Ryan C. Gordon
280618d6f5 Reverted r3255:3256. Don't actually need it unless the build is broken. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402525
2007-07-14 07:05:19 +00:00
Ryan C. Gordon
3a31a8b822 Merged r3257:3258 from branches/SDL-1.2: unused MMX variables.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402524
2007-07-14 07:03:07 +00:00
Ryan C. Gordon
73619c3660 Merged r3255:3256 from branches/SDL-1.2: stdlib problem with SDL_memcpy macro.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402522
2007-07-14 06:46:33 +00:00
Patrice Mandin
f792ff238f Use correct function
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402520
2007-07-14 00:07:37 +00:00
Patrice Mandin
67cbe3bb0d Missing variable declarations
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402519
2007-07-14 00:03:04 +00:00