1. 07 Feb, 2019 1 commit
    • Ilia Mirkin's avatar
      nvc0: add support for handling indirect draws with attrib conversion · 399215eb
      Ilia Mirkin authored
      The hardware does not natively support FIXED and DOUBLE formats. If
      those are used in an indirect draw, they have to be converted. Our
      conversion tries to be clever about only converting the data that's
      needed. However for indirect, that won't work.
      Given that DOUBLE or FIXED are highly unlikely to ever be used with
      indirect draws, read the indirect buffer on the CPU and issue draws
      Fixes the failing dEQP-GLES31.functional.draw_indirect.random.* tests.
      Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
      Cc: 19.0 <mesa-stable@lists.freedesktop.org>
  2. 11 Oct, 2017 1 commit
    • 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
  3. 10 May, 2017 2 commits
  4. 22 Jun, 2016 1 commit
  5. 22 Feb, 2016 1 commit
  6. 23 Oct, 2015 1 commit
    • Ilia Mirkin's avatar
      nvc0: respect edgeflag attribute width · e05021ff
      Ilia Mirkin authored
      The edgeflag comes in as ubyte with glEdgeFlagPointer but as float with
      plain immediate glEdgeFlag. Avoid reading bytes that weren't meant for
      the edgeflag in the pointer case.
      Fixes intermittent failures with gl-2.0-edgeflag piglit (and valgrind
      complaints about reading uninitialized memory).
      Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
      Cc: mesa-stable@lists.freedesktop.org
  7. 23 Jul, 2015 1 commit
  8. 21 Jul, 2015 1 commit
    • Ilia Mirkin's avatar
      gallium: replace INLINE with inline · a2a1a580
      Ilia Mirkin authored
      Generated by running:
      git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g'
      git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g'
      git checkout src/gallium/state_trackers/clover/Doxyfile
      and manual edits to
      to remove mentions of the inline define.
      Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
      Acked-by: default avatarMarek Olšák <marek.olsak@amd.com>
  9. 20 Jul, 2015 1 commit
  10. 15 Jul, 2014 1 commit
  11. 14 May, 2014 1 commit
  12. 18 Mar, 2014 1 commit
  13. 11 Sep, 2013 1 commit
  14. 28 Jun, 2013 1 commit
    • 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>
  15. 03 Apr, 2013 1 commit
  16. 08 Jan, 2013 1 commit
  17. 17 May, 2012 2 commits
  18. 14 Apr, 2012 1 commit