summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler/v3d_compiler.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-05 15:41:35 -0800
committerEric Anholt <[email protected]>2019-04-12 15:59:31 -0700
commit6b1c6598250955552439c3320bf26de6458c5281 (patch)
tree426f6d2c75340f8e186813ab2bcd4ac7a67e098a /src/broadcom/compiler/v3d_compiler.h
parent1e0a72ce096bf368e184acfbeed28916cc0e968f (diff)
v3d: Add Compute Shader compilation support.
While waiting for the CSD UABI to get reviewed, I keep having to rebase the CS patch. Just land the compiler side for now to keep it from diverging. For now this covers just GLES 3.1 compute shaders, not CL kernels.
Diffstat (limited to 'src/broadcom/compiler/v3d_compiler.h')
-rw-r--r--src/broadcom/compiler/v3d_compiler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/broadcom/compiler/v3d_compiler.h b/src/broadcom/compiler/v3d_compiler.h
index 94247860c68..b2bc40b10fe 100644
--- a/src/broadcom/compiler/v3d_compiler.h
+++ b/src/broadcom/compiler/v3d_compiler.h
@@ -691,6 +691,12 @@ struct v3d_fs_prog_data {
bool uses_center_w;
};
+struct v3d_compute_prog_data {
+ struct v3d_prog_data base;
+ /* Size in bytes of the workgroup's shared space. */
+ uint32_t shared_size;
+};
+
static inline bool
vir_has_uniform(struct qinst *inst)
{