intel/isl: Add an isl_swizzle structure and use it for isl_view swizzles
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 28 Aug 2016 04:39:16 +0000 (21:39 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 13 Sep 2016 02:42:57 +0000 (19:42 -0700)
commit7ddb21708c800dfbe3cea2df6aaaf7aed852761b
treed6572da54873cc2f06aeef659aecaa1a868e89ab
parent376d1dc2f1f5a36fe20ede5defe394b87b385731
intel/isl: Add an isl_swizzle structure and use it for isl_view swizzles

This should be more compact than the enum isl_channel_select[4] that we
were using before.  It's also very convenient because we already had such a
structure in the Vulkan driver we just needed to pull it over.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp.c
src/intel/blorp/blorp_blit.c
src/intel/isl/isl.h
src/intel/isl/isl_surface_state.c
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c