[Mesa-dev] [Bug 65420] New: Remove gallium draw_arrays() and draw_arrays_instanced() functions

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 5 08:15:03 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=65420

          Priority: medium
            Bug ID: 65420
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: Remove gallium draw_arrays() and
                    draw_arrays_instanced() functions
          Severity: minor
    Classification: Unclassified
                OS: All
          Reporter: brianp at vmware.com
          Hardware: Other
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

This is a simple gallium clean-up task.

draw_arrays() in gallium/auxiliary/draw/draw_pt.c is only used by the
state_tracker's st_draw_feedback.c file.  We could move draw_arrays() into
st_draw_feedback.c and make it static like this (untested):

static void
draw_arrays(struct draw_context *draw, unsigned prim,
            unsigned start, unsigned count)
{
   struct pipe_draw_info info;

   util_draw_init_info(&info);

   info.mode = mode;
   info.start = start;
   info.count = count;
   info.min_index = start;
   info.max_index = start + count - 1;

   draw_vbo(draw, &info);
}


Then, the draw module will be down to one drawing entrypoint: draw_vbo().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130605/4b276959/attachment.html>


More information about the mesa-dev mailing list