i965: Calculate enabled[] and nr_enabled once and re-use the values.
authorEric Anholt <eric@anholt.net>
Mon, 3 Aug 2009 21:46:18 +0000 (14:46 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 4 Aug 2009 00:19:03 +0000 (17:19 -0700)
commit9b9cb30d128fc5f1ba77287696ecd508e640efde
tree826813f6ea48ff9ae854c2a396e2b6490c418d00
parent1f1ead9947aaa66346d3f33f024700d2fce90b53
i965: Calculate enabled[] and nr_enabled once and re-use the values.

The code duplication bothered me.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c