From 10c6ad3805489819047ee24379bb1e7ab08ead1d Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Wed, 3 Dec 2014 19:05:09 +0800 Subject: 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 --- lib/media_fill.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/media_fill.h') 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 */ -- cgit v1.2.3