i965: Refactor texture swizzle generation into a helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Sep 2012 20:24:16 +0000 (13:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Jan 2013 17:45:18 +0000 (09:45 -0800)
commit3ebfd3f7743e5c05661eab977b23441e45441b39
tree1cd4de8cd149d7ddf88b1b9cd77e77fc236babdf
parentb922999a404322a1034c4f96c21acae860483bb0
i965: Refactor texture swizzle generation into a helper.

It's going to be reused in a second place soon.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit b5a042a657fed45264406cbd0d67fa6217a410a1)
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c