i965: Refactor brw_try_draw_prims.
authorPlamena Manolova <plamena.n.manolova@gmail.com>
Mon, 2 Oct 2017 20:58:26 +0000 (23:58 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Oct 2017 23:25:36 +0000 (16:25 -0700)
commit3fb848356548994979a9cca530748ff6d68e30db
tree3ff9537daf6b811e9718dbcb41e84bf9d4be42c9
parent646e1123859405da36c7a9920e0c5e270eb4979f
i965: Refactor brw_try_draw_prims.

In order to add our ARB_indirect_parameters implementation we
need to refactor brw_try_draw_prims so that it operates on a
per primitive basis and move the loop into brw_draw_prims.
This commit refactors the brw_try_draw_prims function and
renames it to brw_draw_single_prim.

Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw.c