summaryrefslogtreecommitdiff
path: root/lib/gpgpu_fill.h
diff options
context:
space:
mode:
authorDominik Zeromski <dominik.zeromski@intel.com>2015-07-17 11:25:43 +0200
committerThomas Wood <thomas.wood@intel.com>2015-07-20 18:13:37 +0100
commited816d560ce5a1d80a005a452ee0e4295ac1698f (patch)
treebd5930ade869d3425d12ce5a3fc810a257994820 /lib/gpgpu_fill.h
parent3c294a8fa3a3692bab5abe579375edf96ee3b081 (diff)
lib: Move gpgpu_fill code to separate file
The gpgpu fill utility functions are used in separate test so it's logical to keep them in separate file. This is similar to what media spin test did in the past. Functionally only gpgpu kernel changed. Send instruction payload size was reduced. Since offset is incremented by 0x10 bytes there is no point in using larger writes. Cc: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Dominik Zeromski <dominik.zeromski@intel.com> [Thomas: Fix typo of gpgpu_fill.h in Makefile.sources] Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/gpgpu_fill.h')
-rw-r--r--lib/gpgpu_fill.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/gpgpu_fill.h b/lib/gpgpu_fill.h
new file mode 100644
index 00000000..32147941
--- /dev/null
+++ b/lib/gpgpu_fill.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright © 2015 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Dominik Zeromski <dominik.zeromski@intel.com>
+ */
+
+#ifndef GPGPU_FILL_H
+#define GPGPU_FILL_H
+
+void
+gen7_gpgpu_fillfunc(struct intel_batchbuffer *batch,
+ struct igt_buf *dst,
+ unsigned x, unsigned y,
+ unsigned width, unsigned height,
+ uint8_t color);
+
+#endif /* GPGPU_FILL_H */