1. 18 Nov, 2020 1 commit
  2. 13 May, 2020 1 commit
  3. 28 Feb, 2020 1 commit
  4. 12 Dec, 2019 1 commit
  5. 14 Nov, 2019 1 commit
  6. 06 Sep, 2019 1 commit
  7. 16 May, 2019 1 commit
    • Roland Scheidegger's avatar
      auxiliary/draw: fix crash with zero-stride draw auto · 4171a261
      Roland Scheidegger authored
      transform feedback draws get the number of vertices from the transform
      feedback object. In draw, we'll figure this out with the number of bytes
      written divided by the stride. However, it is apparently possible we end
      up with a stride of 0 there (not entirely sure it could happen with GL).
      Probably when nothing was actually ever written (so we don't actually
      have a stride set). Just avoid the division by zero by setting the count
      to 0.
      Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
  8. 25 Mar, 2019 1 commit
  9. 10 May, 2017 1 commit
    • Marek Olšák's avatar
      gallium: remove pipe_index_buffer and set_index_buffer · 330d0607
      Marek Olšák authored
      pipe_draw_info::indexed is replaced with index_size. index_size == 0 means
      Instead of pipe_index_buffer::offset, pipe_draw_info::start is used.
      For indexed indirect draws, pipe_draw_info::start is added to the indirect
      start. This is the only case when "start" affects indirect draws.
      pipe_draw_info::index is a union. Use either index::resource or
      index::user depending on the value of pipe_draw_info::has_user_indices.
      v2: fixes for nine, svga
  10. 18 Jan, 2017 2 commits
  11. 05 Jan, 2016 1 commit
  12. 06 Dec, 2015 1 commit
  13. 07 Mar, 2014 1 commit
  14. 17 Jan, 2014 1 commit
    • Jose Fonseca's avatar
      s/Tungsten Graphics/VMware/ · 87712850
      Jose Fonseca authored
      Tungsten Graphics Inc. was acquired by VMware Inc. in 2008.  Leaving the
      old copyright name is creating unnecessary confusion, hence this change.
      This was the sed script I used:
          $ cat tg2vmw.sed
          # Run as:
          #   git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
          # Rename copyrights
          s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
          /Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
          # Rename emails
  15. 25 Jul, 2013 2 commits
  16. 10 Jul, 2013 1 commit
  17. 03 Jul, 2013 1 commit
  18. 28 Jun, 2013 2 commits
    • Zack Rusin's avatar
      draw/translate: fix instancing · 1c2e5c22
      Zack Rusin authored
      We were incorrectly computing the buffer offset when using the
      instances. The buffer offset is always equal to:
      start_instance * stride + (instance_num / instance_divisor) *
      We were completely ignoring the start instance quite
      often producing instances that completely wrong, e.g. if
      start instance = 5, instance divisor = 2, then on the first
      iteration it should be:
      5 * stride, not (5/2) * stride as we'd have currently, and if
      start instance = 1, instance divisor = 3, then on the first
      iteration it should be:
      1 * stride, not 0 as we'd have.
      This fixes it and adjusts all the code to the changes.
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
    • Zack Rusin's avatar
      draw: check for integer overflows in instance computation · 88de009c
      Zack Rusin authored
      Integers could easily overflow is the starting instance
      was large enough. Instead of letting bogus counts through
      set the instance to max if it overflown and let our
      regular buffer overflow computation handle it.
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
  19. 25 Jun, 2013 1 commit
  20. 10 Jun, 2013 1 commit
  21. 07 Jun, 2013 1 commit
  22. 30 May, 2013 1 commit
  23. 14 May, 2013 2 commits
  24. 23 Apr, 2013 1 commit
  25. 17 Apr, 2013 1 commit
    • Zack Rusin's avatar
      draw: implement pipeline statistics in the draw module · 80ee4a40
      Zack Rusin authored
      This is a basic implementation of the pipeline statistics in the
      draw module. The interface is similar to the stream output statistics
      and also requires that the callers explicitly enable it.
      Included is the implementation of the interface in llvmpipe and
      softpipe. Only softpipe enables the pipeline statistics capability
      though because llvmpipe is lacking gathering of the fragment shading
      and rasterization statistics.
      Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
      Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
  26. 03 Apr, 2013 1 commit
  27. 14 Dec, 2012 1 commit
    • Dave Airlie's avatar
      draw: add support for later transform feedback extensions · 55d37eb4
      Dave Airlie authored
      This adds support to draw for the new features of transform feedback.
      a) fix count_from_stream_output, using max_index+1 for now but it looks
      like it should be valid as its derived from the vertex elements/vbo.
      b) fix striding and dst offsets in output buffers - was just wrong before.
      c) fix crash if tfb is suspended (so.num_targets == 0)
      This also enables the new features on softpipe. It should be possible
      to enable them on llvmpipe as well after this commit, but would need
      to schedule piglit runs.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
  28. 08 Dec, 2012 3 commits
    • Brian Paul's avatar
      draw: fix/improve dirty state validation · 4b73cdb8
      Brian Paul authored
      This patch does two things:
      1. Constant buffer state changes were broken (but happened to work by
         dumb luck).  The problem is we weren't calling draw_do_flush() in
         draw_set_mapped_constant_buffer() when we changed that state.  All the
         other draw_set_foo() functions were calling draw_do_flush() already.
      2. Use a simpler state validation step when we're changing light-weight
         parameter state such as constant buffers, viewport dims or clip planes.
         There's no need to revalidate the whole pipeline when changing state
         like that.  The new validation method is called bind_parameters()
         and is called instead of the prepare() method.  A new
         DRAW_FLUSH_PARAMETER_CHANGE flag is used to signal these light-weight
         state changes.  This results in a modest but measurable increase in
         FPS for many Mesa demos.
      Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
    • Brian Paul's avatar
      draw: fix comment typo · 3e0fa487
      Brian Paul authored
      Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
    • Brian Paul's avatar
  29. 22 Sep, 2012 1 commit
  30. 31 May, 2012 1 commit
  31. 25 May, 2012 1 commit
    • Brian Paul's avatar
      draw: fix primitive restart bug by using the index buffer offset · 1609efb4
      Brian Paul authored
      The code which scans the index buffer for restart indexes wasn't adding
      the index buffer offset so we were always starting at offset=0.  The
      offset is usually zero so it wasn't noticed before.
      Fixes a failure in the piglit primitive-restart test when testing
      vertex data + index data in a single VBO.
      NOTE: This is a candidate for the 8.0 branch.
  32. 12 May, 2012 1 commit
  33. 26 Jan, 2012 2 commits