Am Freitag, 29. November 2002 16:57 schrieb Petr Sebor:
> Dieter,
>
> could you please try this patch? The movaps instruction requires
> the data to be aligned on 32 byte boundary, yet I don't see where
> mesa enforces this. This might the reason why it randomly crashes on
> some configurations while being 'stable' elsewhere.
>
> Please let me know, if it helped.

NO.

Tested with Mesa-5.1 CVS.

Mesa/demos> ./cubemap
GL_RENDERER: Mesa X11
GL_REFLECTION_MAP_ARB mode
keys:
  SPACE - toggle animation
  CURSOR KEYS - rotation
  m - toggle texgen reflection mode
  z/Z - change viewing distance
Floating exception (core dumped)

#0  0x400f8c1b in _mesa_sse_transform_points3_general () from 
/opt/Mesa/lib/libGL.so.1
#1  0x081dc040 in ?? ()
#2  0x4025c006 in init_vertex_stage () from /opt/Mesa/lib/libGL.so.1
#3  0x4021479b in _tnl_run_pipeline () from /opt/Mesa/lib/libGL.so.1
#4  0x40212d9d in _tnl_run_cassette () from /opt/Mesa/lib/libGL.so.1
#5  0x40212e08 in exec_vert_cassette () from /opt/Mesa/lib/libGL.so.1
#6  0x40212fca in _tnl_execute_cassette () from /opt/Mesa/lib/libGL.so.1
#7  0x40209087 in _tnl_flush_immediate () from /opt/Mesa/lib/libGL.so.1
#8  0x40209115 in _tnl_flush_vertices () from /opt/Mesa/lib/libGL.so.1
#9  0x4016c80b in _mesa_PopMatrix () from /opt/Mesa/lib/libGL.so.1
#10 0x08049c8e in draw ()
#11 0x400292da in processWindowWorkList () from /opt/Mesa/lib/libglut.so.3
#12 0x40029374 in __glutProcessWindowWorkLists () from 
/opt/Mesa/lib/libglut.so.3
#13 0x400293dc in glutMainLoop () from /opt/Mesa/lib/libglut.so.3
#14 0x0804a7b0 in main ()
#15 0x403227d1 in __libc_start_main () from /lib/libc.so.6

What about this?

/** TODO:
  * - insert PREFETCH instructions to avoid cache-misses !
  * - some more optimizations are possible...
  * - for 40-50% more performance in the SSE-functions, the
  *   data (trans-matrix, src_vert, dst_vert) needs to be 16byte aligned !
  */

PREFETCH isn't the RIGHT way in some cases:

http://marc.theaimsgroup.com/?l=linux-kernel&m=103548024914815&w=2

What do you think?

-Dieter


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to