Skip to content
  • Ilia Mirkin's avatar
    nv50,nvc0: fix push hint logic in presence of a start offset · b20bccbc
    Ilia Mirkin authored
    Previously buffer offsets were passed in explicitly as an offset, which
    had to be added to the resource address. Now they are passed in via an
    increased 'start' parameter. As a result, we were double-adding the
    start offset in this kind of situation.
    
    This condition was triggered by piglit's draw-elements test which has a
    requisite glMultiDrawElements in combination with a small enough number
    of vertices to go through the immediate push path.
    
    Fixes: 330d0607
    
     ("gallium: remove pipe_index_buffer and set_index_buffer")
    Reported-by: default avatarKarol Herbst <karolherbst@gmail.com>
    Reviewed-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
    Cc: mesa-stable@lists.freedesktop.org
    b20bccbc