History

drm/etnaviv: submit support for out-fences

Based on commit 4cd0945901a6 ("drm/msm: submit support for out-fences"). We increment the minor driver version so userspace can detect explicit fence support.

Philipp Zabel committed 9 years ago

Commit 78ec1871 parent 6e2b98c3 files · +33 −3Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/drm/etnaviv_drm.h+4−2
@@ -156,8 +156,10 @@ struct drm_etnaviv_gem_submit_bo { · 155 unmodified lines
156 */156 */
157#define ETNA_SUBMIT_NO_IMPLICIT 0x0001157#define ETNA_SUBMIT_NO_IMPLICIT 0x0001
158#define ETNA_SUBMIT_FENCE_FD_IN 0x0002158#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 0x00163#define ETNA_PIPE_3D 0x00
162#define ETNA_PIPE_2D 0x01164#define ETNA_PIPE_2D 0x01
163#define ETNA_PIPE_VG 0x02165#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 on180/* The normal way to synchronize with the GPU is just to CPU_PREP on

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t