summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta_clear.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-11-03 14:19:45 -0800
committerChad Versace <[email protected]>2015-11-04 15:15:19 -0800
commit16b2a489dbd4db56fc9231f399a81685330e7e7c (patch)
treec8e76d598a5e651d0767f91bab5ec61bd34b0335 /src/vulkan/anv_meta_clear.h
parentc56727037a968c3ff433468827eff25a40f26a71 (diff)
anv: Move meta clear code to new file anv_meta_clear.c
anv_meta.c currently handles blits, copies, clears, and resolves. The clear code is about to grow, and anv_meta.c is already busting at the seams.
Diffstat (limited to 'src/vulkan/anv_meta_clear.h')
-rw-r--r--src/vulkan/anv_meta_clear.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/vulkan/anv_meta_clear.h b/src/vulkan/anv_meta_clear.h
new file mode 100644
index 00000000000..4ac71f183f7
--- /dev/null
+++ b/src/vulkan/anv_meta_clear.h
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct anv_device;
+
+void anv_device_init_meta_clear_state(struct anv_device *device);
+
+#ifdef __cplusplus
+}
+#endif