write_image: Fixed a bug when use scalar data as color source.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 17 Apr 2013 03:15:15 +0000 (11:15 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 18 Apr 2013 03:14:05 +0000 (11:14 +0800)
commit0268dc155e04f4797faeef62293f30f23e96c202
treeb3ff78361ebe9eaa5a2e5e70caa5ba22c2c21cef
parentfafccdd487f66a056282b1a670ba2d05c0a7ca8a
write_image: Fixed a bug when use scalar data as color source.

If the color source is scalar data type for example from the
kernel input parameters, then we should use QnPhysical to get
the source, rather than hard coded the subnr to zero.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Meng Lv <meng.lv@intel.com>
backend/src/backend/gen_context.cpp