summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2014-11-18 15:00:17 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-11-19 12:54:22 +0800
commit406f68fdc14c6240945bcd81ab5925f9356d6a83 (patch)
tree07992c697441d19d133056958f4637f0f9302296 /src
parent09f1c9d3820609c166fa1377427eb3d7bbbf1bf4 (diff)
Fix NO_TILING alignment bug.
Also need align height when CL_NO_TILING. This patch can fix some tiling_y error. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_mem.c b/src/cl_mem.c
index 65f299ff..d60c59b5 100644
--- a/src/cl_mem.c
+++ b/src/cl_mem.c
@@ -785,7 +785,7 @@ _cl_mem_new_image(cl_context ctx,
if(tiling != CL_NO_TILE && sz > MAX_TILING_SIZE) {
tiling = CL_NO_TILE;
aligned_pitch = w * bpp;
- aligned_h = h;
+ aligned_h = ALIGN(h, cl_buffer_get_tiling_align(ctx, CL_NO_TILE, 1));
sz = aligned_pitch * aligned_h * depth;
}