summaryrefslogtreecommitdiff
path: root/src/gallium/frontends/vallium/val_lower_vulkan_resource.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-06-19 16:40:27 +1000
committerDave Airlie <airlied@redhat.com>2020-07-27 13:48:11 +1000
commit8c38e6d575347560264d0423f2f1f7a49964d448 (patch)
tree46c4117b1642a614e4820daf5151784097545f47 /src/gallium/frontends/vallium/val_lower_vulkan_resource.h
parent7ceddbcb04663a619e735b822cc38d152470101f (diff)
vallium: initial import of the vulkan state tracker.
This is only suitable for SW drivers. NOT FOR HARDWARE DRIVERS NEVER WILL BE, DON'T ASK, JUST WRITE A HW DRIVER.
Diffstat (limited to 'src/gallium/frontends/vallium/val_lower_vulkan_resource.h')
-rw-r--r--src/gallium/frontends/vallium/val_lower_vulkan_resource.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gallium/frontends/vallium/val_lower_vulkan_resource.h b/src/gallium/frontends/vallium/val_lower_vulkan_resource.h
new file mode 100644
index 00000000000..d325d7c1b5b
--- /dev/null
+++ b/src/gallium/frontends/vallium/val_lower_vulkan_resource.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright © 2019 Red Hat.
+ *
+ * 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.
+ */
+
+#ifndef VAL_LOWER_VULKAN_RESOURCE_H
+#define VAL_LOWER_VULKAN_RESOURCE_H
+
+struct val_pipeline_layout;
+struct val_device;
+void val_lower_pipeline_layout(const struct val_device *device,
+ struct val_pipeline_layout *layout,
+ nir_shader *shader);
+
+bool
+val_lower_input_attachments(nir_shader *shader, bool use_fragcoord_sysval);
+
+#endif