summaryrefslogtreecommitdiff
path: root/utests/compiler_fill_image_2d_array.cpp
Commit message (Collapse)AuthorAgeFilesLines
* utests: fix compiler_fill_image_2d_array random bugPan Xiuli2015-11-061-6/+12
| | | | | | | | | | | | | | | Use safer image write instead of map and memset. When create image without data, we could not set pitch and we don't know the pitch either. So use map and memset the space is too dangerous if pitch is bigger than w*sizeof(bpp), in this case the actually pitch is 512 but memset use pitch as 64*4=256. With only half space set to 0, there will be undefined behavior when we want to check the result for those space that we haven't set to 0. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: fix work group size issue in compiler_fill_image_2d_array.Zhigang Gong2014-11-251-2/+2
| | | | | | Reduce work group size from 1024 to 256 to fit all platforms. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
* Add the test case for image 2d array fillJunyan He2014-10-231-0/+84
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>