6361466baa
Added HSA_IMAGE_ENABLE_3D_SWIZZLE_DEBUG environment flag to enable/disable this. Default value is false (view3dAs2dArray = 1) Enabling this flag will enable support for swizzles that do 3D interleaving. Note that all features of 3D images are supported with 2D swizzles,it's just that the access patterns are different and therefore cache hit-rates may be better or worse, depending on how it's used. Volumetric algorithms do better with 3D and apps that tend to access a single slice at a time do better with 2D. Change-Id: Id8574a6710fe4333a1ee331e5ce9195a81434198