summaryrefslogtreecommitdiffstats
path: root/src/broadcom/common
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-04-11 13:27:22 -0700
committerEric Anholt <[email protected]>2019-04-12 15:58:28 -0700
commit89b7df552badea9560765dff337232bca213781f (patch)
tree692f38897863b3e17aa317fb61622fb2377b9be3 /src/broadcom/common
parentb88ef3bd76a1fad3c2a99ea19df62f7be8c57961 (diff)
v3d: Add and use a define for the number of channels in a QPU invocation.
A shader invocation always executes 16 channels together, so we often end up multiplying things by this magic 16 number. Give it a name.
Diffstat (limited to 'src/broadcom/common')
-rw-r--r--src/broadcom/common/v3d_limits.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h
index e21ee246eff..77684762203 100644
--- a/src/broadcom/common/v3d_limits.h
+++ b/src/broadcom/common/v3d_limits.h
@@ -24,6 +24,11 @@
#ifndef V3D_LIMITS_H
#define V3D_LIMITS_H
+/* Number of channels a QPU thread executes in parallel. Also known as
+ * gl_SubGroupSizeARB.
+ */
+#define V3D_CHANNELS 16
+
#define V3D_MAX_FS_INPUTS 64
#define V3D_MAX_VS_INPUTS 64