summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/v3d/v3d_context.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-12-05 15:41:35 -0800
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>2019-10-18 14:08:52 +0200
commit66e2d3b69fbd0310597913f5099272a033963b5d (patch)
treedeeed26537d14b1cfbea066e888e35f01a8def2d /src/gallium/drivers/v3d/v3d_context.h
parent2d8b51ea4d66c817a213e083b09549eb6ae8ba26 (diff)
v3d: Add Compute Shader support
Now that the UAPI has landed, add the pipe_context function for dispatching compute shaders. This is the last major feature for GLES 3.1, though it's not enabled quite yet.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r--src/gallium/drivers/v3d/v3d_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h
index 42663e2344e..ecedbaf9efb 100644
--- a/src/gallium/drivers/v3d/v3d_context.h
+++ b/src/gallium/drivers/v3d/v3d_context.h
@@ -625,11 +625,14 @@ v3d_transform_feedback_enabled(struct v3d_context *v3d)
void v3d_set_shader_uniform_dirty_flags(struct v3d_compiled_shader *shader);
struct v3d_cl_reloc v3d_write_uniforms(struct v3d_context *v3d,
+ struct v3d_job *job,
struct v3d_compiled_shader *shader,
enum pipe_shader_type stage);
void v3d_flush(struct pipe_context *pctx);
void v3d_job_init(struct v3d_context *v3d);
+struct v3d_job *v3d_job_create(struct v3d_context *v3d);
+void v3d_job_free(struct v3d_context *v3d, struct v3d_job *job);
struct v3d_job *v3d_get_job(struct v3d_context *v3d,
struct pipe_surface **cbufs,
struct pipe_surface *zsbuf);