• Ryan C. Gordon's avatar
    From Bug #36: · 958cb54a
    Ryan C. Gordon authored
    There are a couple of issues with the selection of Altivec alpha-blitting
    routines in CalculateAlphaBlit() in src/video/SDL_Blit_A.c.
    
    1) There's no check for the presence of Altivec when checking if the
    Blit32to565PixelAlphaAltivec() routine can be selected.
    
    2) Altivec cannot be used in video memory, and there's no check if the
    destination surface is a hardware surface. (Alpha-blitting to a hardware
    surface with GPU support is a bad idea, but somebody's bound to do it anyway.)
    
    Patch to fix these attached.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401243
    958cb54a
Name
Last commit
Last update
..
audio Loading commit data...
cdrom Loading commit data...
cpuinfo Loading commit data...
endian Loading commit data...
events Loading commit data...
file Loading commit data...
hermes Loading commit data...
joystick Loading commit data...
loadso Loading commit data...
main Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
.cvsignore Loading commit data...
Makefile.am Loading commit data...
Makefile.wat Loading commit data...
SDL.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...
SDL_getenv.c Loading commit data...
SDL_loadso.c Loading commit data...