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>
Fri, 4 Sep 2009 21:12:35 +0000 (14:12 -0700)
commit7e26bdb849b75f4aeb69cf8b1fdffbc461265490
treedb76b6ee40073364af3668c8064701bb304665ac
parent213ac4bb5de1cef601e0677ef2e5ca1779851e28
i965: Calculate enabled[] and nr_enabled once and re-use the values.

The code duplication bothered me.
(cherry picked from commit 9b9cb30d128fc5f1ba77287696ecd508e640efde)
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c