Bug 137363 - [patch] graphics/devil: add SIMD knob
Summary: [patch] graphics/devil: add SIMD knob
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-02 20:50 UTC by swell.k
Modified: 2009-08-06 03:40 UTC (History)
0 users

See Also:


Attachments
devil.diff (1.61 KB, patch)
2009-08-02 20:50 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2009-08-02 20:50:00 UTC
Hide machine extensions behind SIMD knob. Perhaps, better to use
--disable-asm rather than disabling each one separetely.

Besides, it fixes love(6) compiled by gcc45 `bus error' crash for me.

--- crash.log begins here ---
(gdb) r
Starting program: /usr/local/bin/love
During symbol reading...location expression too complex...
During symbol reading...location expression too complex...
[New LWP 100315]
During symbol reading...location expression too complex...
During symbol reading...location expression too complex...
[New Thread 8066021c0 (LWP 100315)]
This is LOVE 0.5.0 (Salted Nuts).

INIT love.filesystem [PhysFS]
INIT love.graphics [OpenGL/DevIL/FreeType]

Program received signal SIGBUS, Bus error.
[Switching to Thread 8066021c0 (LWP 100315)]
free (ptr=3D0x31003200320032) at /usr/src/lib/libc/stdlib/malloc.c:3889
3889                    arena_dalloc(chunk->arena, chunk, ptr);
Current language:  auto; currently c
(gdb) bt f
#0  free (ptr=3D0x31003200320032) at /usr/src/lib/libc/stdlib/malloc.c:3889
No locals.
During symbol reading, Incomplete CFI data; unspecified registers at 0x0000=
0008055684a5.
#1  0x0000000802e3ab5a in _mm_free (aligned_ptr=3D0x806615134) at mm_malloc=
.h:71
No locals.
#2  0x0000000802e3ac4a in DefaultFreeFunc (ptr=3D0x806615134)
    at ./../src-IL/src/il_alloc.c:127
No locals.
#3  0x0000000802e3abb6 in ifree (Ptr=3D0x806615134)
    at ./../src-IL/src/il_alloc.c:99
No locals.
#4  0x0000000802e72146 in ilTexImage_ (Image=3D0x8066516c0, Width=3D64,
    Height=3D64, Depth=3D1, Bpp=3D3 '\003', Format=3D32992, Type=3D5121, Da=
ta=3D0x0)
    at ./../src-IL/src/il_devil.c:156
No locals.
#5  0x0000000802e7200e in ilTexImage (Width=3D64, Height=3D64, Depth=3D1,
    Bpp=3D3 '\003', Format=3D32992, Type=3D5121, Data=3D0x0)
    at ./../src-IL/src/il_devil.c:129
No locals.
#6  0x0000000802e5e036 in ilDefaultImage () at ./../src-IL/src/il_manip.c:6=
17
        TempData =3D (ILubyte *) 0x800792600 "z=EF=BF=BDP=EF=BF=BD"
        Yellow =3D "\022=EF=BF=BD=EF=BF=BD"
        Black =3D "\000\000"
        ColorPtr =3D (ILubyte *) 0x7fffffffe0f0 "\022=EF=BF=BD=EF=BF=BD"
        Color =3D 1 '\001'
        v =3D 514
        w =3D 8
        x =3D 51030952
        y =3D 8
#7  0x0000000802e3c8b6 in iSetImage0 () at ./../src-IL/src/il_stack.c:648
No locals.
#8  0x0000000802e3c6e1 in ilInit () at ./../src-IL/src/il_stack.c:590
No locals.
#9  0x000000000047eb5c in love_opengl::module_init (argc=3D1,
    argv=3D0x7fffffffe378, core=3D0x80660d180) at opengl/love_opengl.cpp:107
No locals.
#10 0x00000000004699a9 in love::Core::insmod (this=3D0x80660d180,
    m=3D@0x7fffffffe230) at liblove/Core.cpp:55
No locals.
#11 0x0000000000469be1 in love::Core::insmod (this=3D0x80660d180,
    init=3D0x47ea46 <love_opengl::module_init(int, char**, love::Core*)>,
    quit=3D0x47e2b2 <love_opengl::module_quit()>,
    open=3D0x47ea0c <love_opengl::module_open(void*)>) at liblove/Core.cpp:=
65
        m =3D {
  px =3D 0x80660c280,
  pn =3D {
    pi_ =3D 0x80660c2a0
  }
}
#12 0x0000000000409392 in main (argc=3D1, argv=3D0x7fffffffe378) at love.cp=
p:81
        core =3D {
  px =3D 0x80660d180,
  pn =3D {
    pi_ =3D 0x80660c1c0
  }
}
        timer =3D (struct love::Timer *) 0x40920b
        graphics =3D (struct love::Graphics *) 0x7fffffffe310
        system =3D (struct love::System *) 0x4fe46a
        e =3D {
  type =3D 120 'x',
  active =3D {
    type =3D 120 'x',
    gain =3D 227 '=EF=BF=BD',
    state =3D 255 '=EF=BF=BD'
  },
  key =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    state =3D 255 '=EF=BF=BD',
    keysym =3D {
      scancode =3D 255 '=EF=BF=BD',
      sym =3D SDLK_UNKNOWN,
      mod =3D KMOD_NONE,
      unicode =3D 0
    }
  },
  motion =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    state =3D 255 '=EF=BF=BD',
    x =3D 32767,
    y =3D 0,
    xrel =3D 0,
    yrel =3D 0
  },
  button =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    button =3D 255 '=EF=BF=BD',
    state =3D 255 '=EF=BF=BD',
    x =3D 32767,
    y =3D 0
  },
  jaxis =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    axis =3D 255 '=EF=BF=BD',
    value =3D 32767
  },
  jball =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    ball =3D 255 '=EF=BF=BD',
    xrel =3D 32767,
    yrel =3D 0
  },
  jhat =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    hat =3D 255 '=EF=BF=BD',
    value =3D 255 '=EF=BF=BD'
  },
  jbutton =3D {
    type =3D 120 'x',
    which =3D 227 '=EF=BF=BD',
    button =3D 255 '=EF=BF=BD',
    state =3D 255 '=EF=BF=BD'
  },
  resize =3D {
    type =3D 120 'x',
    w =3D 32767,
    h =3D 0
  },
  expose =3D {
    type =3D 120 'x'
  },
  quit =3D {
    type =3D 120 'x'
  },
  user =3D {
    type =3D 120 'x',
    code =3D 32767,
    data1 =3D 0x0,
    data2 =3D 0x0
  },
  syswm =3D {
    type =3D 120 'x',
    msg =3D 0x0
  }
}
        running =3D false
--- crash.log ends here ---
Comment 1 Edwin Groothuis freebsd_committer 2009-08-02 20:50:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2009-08-06 03:30:15 UTC
amdmi3      2009-08-06 02:29:58 UTC

  FreeBSD ports repository

  Modified files:
    graphics/devil       Makefile 
  Log:
  - Add SIMD knob
  
  PR:             137363
  Submitted by:   Anonymous <swell.k@gmail.com>
  
  Revision  Changes    Path
  1.28      +7 -3      ports/graphics/devil/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Dmitry Marakasov freebsd_committer 2009-08-06 03:30:17 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!