Turn on SSE, SSE2, and 3dnow instruction sets.

* app/composite/gimp-composite.c (gimp_composite_init): Turn on
  SSE, SSE2, and 3dnow instruction sets.

* app/paint-funcs/paint-funcs.c (initial_sub_region): Fixed
  uninitialised data in the special case for dissolve.
  This is the cause of Bug #121213.
This commit is contained in:
Helvetix Victorinox
2003-09-03 03:49:12 +00:00
parent 674a95f15b
commit 66dc32259a
3 changed files with 18 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2003-09-02 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite.c (gimp_composite_init): Turn on
SSE, SSE2, and 3dnow instruction sets.
* app/paint-funcs/paint-funcs.c (initial_sub_region): Fixed
uninitialised data in the special case for dissolve.
This is the cause of Bug #121213.
2003-09-03 Michael Natterer <mitch@gimp.org>
* app/core/gimpchannel.[ch]: made all functions which push an

View File

@ -331,7 +331,7 @@ gimp_composite_init (void)
g_printerr (" +mmx");
gimp_composite_mmx_install ();
}
#if 0
#if 1
if (cpu & CPU_ACCEL_X86_SSE || cpu_accel() & CPU_ACCEL_X86_MMXEXT)
{
extern void gimp_composite_sse_install (void);

View File

@ -4319,8 +4319,11 @@ initial_sub_region (struct initial_regions_struct *st,
{
GimpCompositeContext ctx;
ctx.A = NULL;
ctx.pixelformat_A = GIMP_PIXELFORMAT_ANY;
ctx.B = s;
ctx.pixelformat_A = (src->bytes == 1 ? GIMP_PIXELFORMAT_V8
ctx.pixelformat_B = (src->bytes == 1 ? GIMP_PIXELFORMAT_V8
: src->bytes == 2 ? GIMP_PIXELFORMAT_VA8
: src->bytes == 3 ? GIMP_PIXELFORMAT_RGB8
: src->bytes == 4 ? GIMP_PIXELFORMAT_RGBA8
@ -4362,8 +4365,11 @@ initial_sub_region (struct initial_regions_struct *st,
{
GimpCompositeContext ctx;
ctx.A = NULL;
ctx.pixelformat_A = GIMP_PIXELFORMAT_ANY;
ctx.B = s;
ctx.pixelformat_A = (src->bytes == 1 ? GIMP_PIXELFORMAT_V8
ctx.pixelformat_B = (src->bytes == 1 ? GIMP_PIXELFORMAT_V8
: src->bytes == 2 ? GIMP_PIXELFORMAT_VA8
: src->bytes == 3 ? GIMP_PIXELFORMAT_RGB8
: src->bytes == 4 ? GIMP_PIXELFORMAT_RGBA8