• 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: Karol Herbst's avatarKarol Herbst <karolherbst@gmail.com>
    Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
    Cc: mesa-stable@lists.freedesktop.org
    b20bccbc
nvc0_vbo_translate.c 20.1 KB