diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-11-24 12:02:38 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-01-02 17:31:59 +0100 |
commit | ef146c00e2c29c5f926c6a7e9dc354c0cbeb2818 (patch) | |
tree | ea3c440c4843d69fedeaa509bf4e8554f96ae784 /drivers/gpu/drm/etnaviv/etnaviv_gem.h | |
parent | drm/etnaviv: refcount the submit object (diff) | |
download | linux-dev-ef146c00e2c29c5f926c6a7e9dc354c0cbeb2818.tar.xz linux-dev-ef146c00e2c29c5f926c6a7e9dc354c0cbeb2818.zip |
drm/etnaviv: move PMRs to submit object
To make them available to the event worker even after the actual
command stream execution has finished.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gem.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.h b/drivers/gpu/drm/etnaviv/etnaviv_gem.h index 4238f8d8541d..f525fd1ef63c 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.h @@ -97,14 +97,15 @@ struct etnaviv_gem_submit_bo { /* Created per submit-ioctl, to track bo's and cmdstream bufs, etc, * associated with the cmdstream submission for synchronization (and - * make it easier to unwind when things go wrong, etc). This only - * lasts for the duration of the submit-ioctl. + * make it easier to unwind when things go wrong, etc). */ struct etnaviv_gem_submit { struct kref refcount; struct etnaviv_gpu *gpu; struct dma_fence *out_fence, *in_fence; u32 flags; + unsigned int nr_pmrs; + struct etnaviv_perfmon_request *pmrs; unsigned int nr_bos; struct etnaviv_gem_submit_bo bos[0]; /* No new members here, the previous one is variable-length! */ |