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.
This commit is contained in:
Eric Anholt
2018-12-05 15:41:35 -08:00
parent 1e0a72ce09
commit 6b1c659825
9 changed files with 302 additions and 83 deletions

View File

@@ -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)
{