[Mesa-dev] [PATCH 0/4] Actual ARB_multi_draw_indirect support

Ilia Mirkin imirkin at alum.mit.edu
Mon Jan 4 19:25:53 PST 2016


On Mon, Jan 4, 2016 at 10:07 PM, Ian Romanick <idr at freedesktop.org> wrote:
> On 12/31/2015 11:55 AM, Ilia Mirkin wrote:
>> The current support in mesa for ARB_multi_draw_indirect is pretty
>> shameful... it just does N separate draws. Instead make it possible
>> for drivers to handle this in a more efficient manner. Also create the
>> backend interfaces necessary to support ARB_indirect_parameters,
>> although the (trivial) frontend bits are not part of this series.
>>
>> Of course right now st/mesa will still break up the multidraw into N
>> draws since no backends actually support this. And there are no
>> piglits (other than one in images) which actually make use of
>> glMultiDraw*Indirect... oh well.
>
> Are there any known applications that use this feature?

Maybe? My motivation to fix this was that the existing thing was
dirty, and I also wanted to do ARB_indirect_parameters (not that any
applications use *that* either).

Supertuxkart will use it if you have a bunch of stuff which mesa doesn't have:

https://github.com/supertuxkart/stk-code/blob/9e6cf8ee9180fb3cfd4524bef0990a8675b1cd2f/src/graphics/render_geometry.cpp#L1165

The condition for this getting triggered, from what I can tell, is
"isAZDOEnabled", which only is enabled if you have bindless textures
(and multi draw obviously).

  -ilia


More information about the mesa-dev mailing list