From 83352d08b52acd6ee677f9f62dd032b0b8d31835 Mon Sep 17 00:00:00 2001 From: Katarzyna Dec Date: Tue, 18 Sep 2018 12:30:44 -0700 Subject: lib/gpgpu_fill: Implement gpgpu_fillfunc for Gen11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added gen11_gpgpu_fillfunc to have gpgpu_fill passing on Gen11. Gpgpu shader was generated using IGA (Intel Graphics Assembler) based on binary found in lib/gpgpu_fill.c to match the changes in Gen11 HW: Changed 'mul' instruction to 'shl' (since Gen11 'mul' does not support integer values for both src and dest). Changed SEND message descriptor (it should have length 2 not 3). Cc: Lukasz Kalamarz Cc: Rodrigo Vivi Tested-by: José Roberto de Souza Signed-off-by: Katarzyna Dec Signed-off-by: Lukasz Kalamarz Acked-by: Katarzyna Dec Signed-off-by: Rodrigo Vivi --- lib/gpgpu_fill.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/gpgpu_fill.h') diff --git a/lib/gpgpu_fill.h b/lib/gpgpu_fill.h index 40246d1a..e405df3e 100644 --- a/lib/gpgpu_fill.h +++ b/lib/gpgpu_fill.h @@ -50,4 +50,11 @@ gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +void +gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, + const struct igt_buf *dst, + unsigned int x, unsigned int y, + unsigned int width, unsigned int height, + uint8_t color); + #endif /* GPGPU_FILL_H */ -- cgit v1.2.3