summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_adreno.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_adreno.h')
-rw-r--r--include/drm/drm_adreno.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/drm/drm_adreno.h b/include/drm/drm_adreno.h
index 92275429dfe9..8c62a834b9b0 100644
--- a/include/drm/drm_adreno.h
+++ b/include/drm/drm_adreno.h
@@ -20,7 +20,18 @@
#include <drm/drmP.h>
struct msm_gpu;
-struct msm_gem_submit;
+
+#define ADRENO_SUBMIT_MAX_CMDS 4
+struct adreno_submit {
+ unsigned int nr_cmds;
+ struct {
+ uint32_t type;
+ uint32_t size; /* in dwords */
+ uint32_t iova;
+ } cmd[ADRENO_SUBMIT_MAX_CMDS];
+
+ uint32_t fence;
+};
struct adreno_context {
int dummy;
@@ -31,7 +42,7 @@ struct adreno_gpu_funcs {
int (*hw_init)(struct msm_gpu *gpu);
int (*pm_suspend)(struct msm_gpu *gpu);
int (*pm_resume)(struct msm_gpu *gpu);
- int (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit,
+ int (*submit)(struct msm_gpu *gpu, struct adreno_submit *submit,
struct adreno_context *ctx);
void (*flush)(struct msm_gpu *gpu);
void (*idle)(struct msm_gpu *gpu);