summaryrefslogtreecommitdiff
path: root/lib/gpgpu_fill.h
diff options
context:
space:
mode:
authorKatarzyna Dec <katarzyna.dec@intel.com>2018-09-18 12:30:44 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2018-09-26 16:56:23 -0700
commit83352d08b52acd6ee677f9f62dd032b0b8d31835 (patch)
treea09a55672db496e778aeb60a3bec256837011f10 /lib/gpgpu_fill.h
parent892699ff896efc5de97bce2adc6cbfb49d5a321d (diff)
lib/gpgpu_fill: Implement gpgpu_fillfunc for Gen11
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 <lukasz.kalamarz@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Tested-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Katarzyna Dec <katarzyna.dec@intel.com> Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com> Acked-by: Katarzyna Dec <katarzyna.dec@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'lib/gpgpu_fill.h')
-rw-r--r--lib/gpgpu_fill.h7
1 files changed, 7 insertions, 0 deletions
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 */