intel: Clarify intel_screen_make_configs
authorChad Versace <chad.versace@linux.intel.com>
Thu, 2 Aug 2012 21:51:47 +0000 (14:51 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 7 Aug 2012 16:30:33 +0000 (09:30 -0700)
commit8b5d68dd28a78c2250bfc4a7fa62cd9e5cdd756e
tree5178628b5b75c44b6785c30bb0f0c71c0786b341
parenta4bf68ca50da0ce291a464aec9b03a469ab2561a
intel: Clarify intel_screen_make_configs

This function felt sloppy, so this patch cleans it up a little bit.

- Rename `color` to `i`. It is not a color value, only an iterator int.
- Move `depth_bits[0] = 0` into the non-accum loop because that is where
  it used. The accum loop later overwrites depth_bits[0].
- Rename `depth_factor` to `num_depth_stencil_bits`.
- Redefine `msaa_samples_array` as static const because it is never
  modified. Rename to `singlesample_samples`.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_screen.c