Based on commit 4cd0945901a6 ("drm/msm: submit support for out-fences"). We increment the minor driver version so userspace can detect explicit fence support.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -156,8 +156,10 @@ struct drm_etnaviv_gem_submit_bo { · 155 unmodified lines | |||
| 156 | */ | 156 | */ |
| 157 | #define ETNA_SUBMIT_NO_IMPLICIT 0x0001 | 157 | #define ETNA_SUBMIT_NO_IMPLICIT 0x0001 |
| 158 | #define ETNA_SUBMIT_FENCE_FD_IN 0x0002 | 158 | #define ETNA_SUBMIT_FENCE_FD_IN 0x0002 |
| 159 | #define ETNA_SUBMIT_FENCE_FD_OUT 0x0004 | ||
| 159 | #define ETNA_SUBMIT_FLAGS (ETNA_SUBMIT_NO_IMPLICIT | \ | 160 | #define ETNA_SUBMIT_FLAGS (ETNA_SUBMIT_NO_IMPLICIT | \ |
| 160 | ETNA_SUBMIT_FENCE_FD_IN) | 161 | ETNA_SUBMIT_FENCE_FD_IN | \ |
| 162 | ETNA_SUBMIT_FENCE_FD_OUT) | ||
| 161 | #define ETNA_PIPE_3D 0x00 | 163 | #define ETNA_PIPE_3D 0x00 |
| 162 | #define ETNA_PIPE_2D 0x01 | 164 | #define ETNA_PIPE_2D 0x01 |
| 163 | #define ETNA_PIPE_VG 0x02 | 165 | #define ETNA_PIPE_VG 0x02 |
| @@ -172,7 +174,7 @@ struct drm_etnaviv_gem_submit { · 8 unmodified lines | |||
| 172 | __u64 relocs; /* in, ptr to array of submit_reloc's */ | 174 | __u64 relocs; /* in, ptr to array of submit_reloc's */ |
| 173 | __u64 stream; /* in, ptr to cmdstream */ | 175 | __u64 stream; /* in, ptr to cmdstream */ |
| 174 | __u32 flags; /* in, mask of ETNA_SUBMIT_x */ | 176 | __u32 flags; /* in, mask of ETNA_SUBMIT_x */ |
| 175 | __s32 fence_fd; /* in, fence fd (see ETNA_SUBMIT_FENCE_FD_IN) */ | 177 | __s32 fence_fd; /* in/out, fence fd (see ETNA_SUBMIT_FENCE_FD_x) */ |
| 176 | }; | 178 | }; |
| 177 | 179 | ||
| 178 | /* The normal way to synchronize with the GPU is just to CPU_PREP on | 180 | /* The normal way to synchronize with the GPU is just to CPU_PREP on |