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/media_fill.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/media_fill.h')
-rw-r--r-- | lib/media_fill.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/media_fill.h b/lib/media_fill.h index 226489cb..2a300550 100644 --- a/lib/media_fill.h +++ b/lib/media_fill.h @@ -32,4 +32,11 @@ gen9_media_fillfunc(struct intel_batchbuffer *batch, unsigned width, unsigned height, uint8_t color); +void +gen7_gpgpu_fillfunc(struct intel_batchbuffer *batch, + struct igt_buf *dst, + unsigned x, unsigned y, + unsigned width, unsigned height, + uint8_t color); + #endif /* RENDE_MEDIA_FILL_H */ |