diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2014-12-03 19:05:09 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2014-12-04 10:17:16 +0800 |
commit | 10c6ad3805489819047ee24379bb1e7ab08ead1d (patch) | |
tree | 8d2249f68e6749b46dd104ad9fc8217edb1dd490 /lib/intel_batchbuffer.h | |
parent | 106f0bf965ac5ba8e5553e3e1b39396750bedc74 (diff) |
lib: Add GPGPU fill
This is to add fill operation using GPGPU pipeline which is similar to
current media fill. This can be used to simply verify GPGPU pipeline
and help to enable it on newer HW, currently it works on Gen7 only and
will add support on later platform.
Now this sets very simply thread group dispatch for one thread per
thread group on SIMD16 dispatch. So the fill shader just uses thread
group ID for buffer offset.
v2: No new fill func typedef but adapt to igt_fillfunc_t.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index f0e21ea9..12f7be1c 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -250,11 +250,11 @@ igt_render_copyfunc_t igt_get_render_copyfunc(int devid); * @color: fill color to use * * This is the type of the per-platform fill functions using media - * pipeline. The platform-specific implementation can be obtained - * by calling igt_get_media_fillfunc(). + * or gpgpu pipeline. The platform-specific implementation can be obtained + * by calling igt_get_media_fillfunc() or igt_get_gpgpu_fillfunc(). * * A fill function will emit a batchbuffer to the kernel which executes - * the specified blit fill operation using the media engine. + * the specified blit fill operation using the media/gpgpu engine. */ typedef void (*igt_fillfunc_t)(struct intel_batchbuffer *batch, struct igt_buf *dst, @@ -263,5 +263,6 @@ typedef void (*igt_fillfunc_t)(struct intel_batchbuffer *batch, uint8_t color); igt_fillfunc_t igt_get_media_fillfunc(int devid); +igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid); #endif |