diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-04-22 14:47:05 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-07-02 12:21:28 +0200 |
commit | ef8e50a841e79597ca56ae081102119329fd154c (patch) | |
tree | c11c8f71c1c8817d03e7eaf9c2c04199a8a394e2 /src/gallium/include/pipe | |
parent | d386cef246b5949a1199f3b9d53a9e6d125e4869 (diff) | |
download | external_mesa3d-ef8e50a841e79597ca56ae081102119329fd154c.zip external_mesa3d-ef8e50a841e79597ca56ae081102119329fd154c.tar.gz external_mesa3d-ef8e50a841e79597ca56ae081102119329fd154c.tar.bz2 |
clover: Pass work_dim parameter of clEnqueueNDRangeKernel() to driver
In order to implement get_work_dim() the driver may need to know the
clEnqueueNDRangeKernel() work_dim parameter, so pass it to the driver.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 5526c39..f4bee38 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -756,6 +756,13 @@ struct pipe_grid_info void *input; /** + * Grid number of dimensions, 1-3, e.g. the work_dim parameter passed to + * clEnqueueNDRangeKernel. Note block[] and grid[] must be padded with + * 1 for non-used dimensions. + */ + uint work_dim; + + /** * Determine the layout of the working block (in thread units) to be used. */ uint block[3]; |