summaryrefslogtreecommitdiffstats
path: root/src/panfrost/encoder/pan_encoder.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-12-19 16:39:56 -0500
committerAlyssa Rosenzweig <[email protected]>2019-12-24 19:48:57 -0500
commit31305e1b2854c6a70dc8c61265f525fcb52c265d (patch)
tree864aba886cdc1fbb7b62963be622513733788517 /src/panfrost/encoder/pan_encoder.h
parent8a576726734bb214e5af3587b7544d93f81fe260 (diff)
panfrost: Move instancing routines to encoder/
Nothing Gallium specific or stateful about them. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/encoder/pan_encoder.h')
-rw-r--r--src/panfrost/encoder/pan_encoder.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/panfrost/encoder/pan_encoder.h b/src/panfrost/encoder/pan_encoder.h
index 90fbb91a0c7..d3eb5fdc3b1 100644
--- a/src/panfrost/encoder/pan_encoder.h
+++ b/src/panfrost/encoder/pan_encoder.h
@@ -86,4 +86,24 @@ unsigned panfrost_query_thread_tls_alloc(int fd);
const char * panfrost_model_name(unsigned gpu_id);
+/* Attributes / instancing */
+
+struct pan_shift_odd {
+ unsigned shift;
+ unsigned odd;
+};
+
+struct pan_shift_odd
+panfrost_padded_vertex_count(unsigned vertex_count);
+
+unsigned
+panfrost_vertex_instanced(
+ unsigned padded_count,
+ unsigned instance_shift, unsigned instance_odd,
+ unsigned divisor,
+ union mali_attr *attrs);
+
+unsigned
+pan_expand_shift_odd(struct pan_shift_odd o);
+
#endif