diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-18 10:10:07 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-20 15:53:28 +0800 |
commit | 0aa3d33e0da27a3772964aecd72556f0770f63fb (patch) | |
tree | cbc2d79f007a986e5f1bff55e8b630e11e8cdb06 /src/cl_device_id.h | |
parent | 5745447ce9b56504aeb95e2bf03b93c4d3a9d5dc (diff) |
GBE/runtime: fixup broken 1d array image support.
As sample LD message doesn't support array index, we have
to create a 2D array surface with the same buffer object.
Thus one 1D array image will have two surfaces binded to it
one is the index and the second is 128 + index.
And then at kernel side, we will access the corresponding
2D array surface when the LD message is required otherwise
will access the origin 1D array surface.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
Diffstat (limited to 'src/cl_device_id.h')
-rw-r--r-- | src/cl_device_id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_device_id.h b/src/cl_device_id.h index a5449a7f..769bfd20 100644 --- a/src/cl_device_id.h +++ b/src/cl_device_id.h @@ -51,6 +51,7 @@ struct _cl_device_id { cl_uint max_read_image_args; cl_uint max_write_image_args; size_t image2d_max_width; + size_t image_max_array_size; size_t image2d_max_height; size_t image3d_max_width; size_t image3d_max_height; |