Mercurial > sdl-ios-xcode
annotate test/.cvsignore @ 1544:ab1e4c41ab71
Fixed bug #33
Mike Frysinger wrote:
> with libsdl-1.2.9, some games (like bomberclone) started
> segfaulting in Gentoo
[...snip...]
> the last change in the last hunk:
[...snip...]
> if i change the statement to read:
> (table[which].blit_features & GetBlitFeatures()) == GetBlitFeatures()
> bomberclone no longer segfaults on my box
Alex Volkov wrote:
> The test "(table[which].blit_features & GetBlitFeatures()) ==
> table[which].blit_features)" is correct, and the previous
> "(table[which].cpu_mmx == SDL_HasMMX())" was actually broken.
I think there is potentially a slightly different cause of the above problem.
During the introduction of the Altivec code, the blit_table struct field
'alpha' got changed from a straightforward enum to a bitmask, which makes
perfect sense by itself. However, now the table driven blitter selection code
in SDL_CalculateBlitN() can choose the wrong blitters when searching for a
NO_ALPHA blitter because of the following code:
int a_need = 0;
...
(a_need & table[which].alpha) == a_need &&
When searching through the normal_blit_2[] table, a SET_ALPHA blitter (like
Blit_RGB565_ARGB8888) can now be selected instead of a NO_ALPHA one, causing
alpha channel bits to appear in a non-alpha destination surface. I suppose this
could theoretically be an indirect cause of the segfault mentioned above.
I *think* this can be fixed by changing to
int a_need = NO_ALPHA;
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 15 Mar 2006 15:47:49 +0000 |
parents | 7b4b31075f67 |
children |
rev | line source |
---|---|
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1285
diff
changeset
|
1 aclocal.m4 |
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1285
diff
changeset
|
2 autom4te* |
416 | 3 config.cache |
4 config.log | |
5 config.status | |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1285
diff
changeset
|
6 configure |
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1285
diff
changeset
|
7 Makefile |
1285
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
8 SDL.dll |
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
9 stdout.txt |
c9ae23d221ea
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1249
diff
changeset
|
10 stderr.txt |
416 | 11 checkkeys |
12 graywin | |
13 loopwave | |
14 testalpha | |
15 testbitmap | |
1249
e6a82dcdce09
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
817
diff
changeset
|
16 testblitspeed |
416 | 17 testcdrom |
1249
e6a82dcdce09
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
817
diff
changeset
|
18 testdyngl |
416 | 19 testerror |
1484
b2b476a4a73c
Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1380
diff
changeset
|
20 testfile |
416 | 21 testgamma |
22 testgl | |
23 testhread | |
1504
7b4b31075f67
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1485
diff
changeset
|
24 testiconv |
416 | 25 testjoystick |
26 testkeys | |
27 testlock | |
28 testoverlay | |
676
8b58eeef4576
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
416
diff
changeset
|
29 testoverlay2 |
416 | 30 testpalette |
1484
b2b476a4a73c
Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents:
1380
diff
changeset
|
31 testplatform |
416 | 32 testsem |
33 testsprite | |
34 testtimer | |
35 testver | |
36 testvidinfo | |
37 testwin | |
38 testwm | |
1485
e507811313ee
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1484
diff
changeset
|
39 threadwin |
1380
d94b080ff6ce
Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents:
1285
diff
changeset
|
40 torturethread |