Skip to content
Snippets Groups Projects
  1. Feb 21, 2015
  2. Feb 18, 2015
  3. Feb 11, 2015
  4. Feb 07, 2015
  5. Feb 04, 2015
  6. Feb 02, 2015
  7. Jan 30, 2015
    • Brian Paul's avatar
      mesa: fix display list 8-byte alignment issue · c96ed76b
      Brian Paul authored
      The _mesa_dlist_alloc() function is only guaranteed to return a pointer
      with 4-byte alignment.  On 64-bit systems which don't support unaligned
      loads (e.g. SPARC or MIPS) this could lead to a bus error in the VBO code.
      
      The solution is to add a new  _mesa_dlist_alloc_aligned() function which
      will return a pointer to an 8-byte aligned address on 64-bit systems.
      This is accomplished by inserting a 4-byte NOP instruction in the display
      list when needed.
      
      The only place this actually matters is the VBO code where we need to
      allocate a 'struct vbo_save_vertex_list' which needs to be 8-byte
      aligned (just as if it were malloc'd).
      
      The gears demo and others hit this bug.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88662
      
      
      Cc: "10.4" <mesa-stable@lists.freedesktop.org>
      Reviewed-by: default avatarJosé Fonseca <jfonseca@vmware.com>
      (cherry picked from commit 53b01938)
      c96ed76b
  8. Jan 24, 2015
  9. Jan 23, 2015
Loading