i965: Remove fallthrough for Gen4 cube map layout.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Jun 2013 22:06:47 +0000 (15:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 17:48:14 +0000 (10:48 -0700)
commit1920209970bba432f2a8c6ccbe2fb84d007e5e93
treed8706087420447fadbde5d4bb437a7d28a46d670
parent7e4007a1b34ad29ef6441d9b20d0999c32350bd6
i965: Remove fallthrough for Gen4 cube map layout.

Now that both 2DArray and Cube layouts are taken care of by helper
functions, it's easy to just call the right function for each
generation.  This is a little cleaner than falling through.

This also reworks the comments.  Referencing "Volume 1" of the BSpec
isn't very helpful, since that's only available inside Intel, and it
doesn't even use volume numbers.  Also, "Ironlake...finally" sounds a
bit strange considering that almost all hardware uses the 2D array
approach.  At this point, Gen4 is the only special case.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c