History

Merge tag 'drm-vc4-next-2016-07-15' of https://github.com/anholt/linux into drm-next

This pull request brings in vc4 shader validation for branching, allowing GLSL shaders with non-unrolled loops. * tag 'drm-vc4-next-2016-07-15' of https://github.com/anholt/linux: drm/vc4: Fix a "the the" typo in a comment. drm/vc4: Fix definition of QPU_R_MS_REV_FLAGS drm/vc4: Add a getparam to signal support for branches. drm/vc4: Add support for branching in shader validation. drm/vc4: Add a bitmap of branch targets during shader validation. drm/vc4: Move validation's current/max ip into the validation struct. drm/vc4: Add a getparam ioctl for getting the V3D identity regs.

Dave Airlie committed 10 years ago

Commit 2d635fd2 parents ec2174f a20d5fa6 files · +496 −44Browse files

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

Unified · Split

include/uapi/drm/vc4_drm.h+13−0
@@ -37,6 +37,7 @@ extern "C" { · 36 unmodified lines
3737 #define DRM_VC4_MMAP_BO 0x04
3838 #define DRM_VC4_CREATE_SHADER_BO 0x05
3939 #define DRM_VC4_GET_HANG_STATE 0x06
40+#define DRM_VC4_GET_PARAM 0x07
4041
4142 #define DRM_IOCTL_VC4_SUBMIT_CL DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_SUBMIT_CL, struct drm_vc4_submit_cl)
4243 #define DRM_IOCTL_VC4_WAIT_SEQNO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_WAIT_SEQNO, struct drm_vc4_wait_seqno)
@@ -45,6 +46,7 @@ extern "C" { · 2 unmodified lines
4546 #define DRM_IOCTL_VC4_MMAP_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_MMAP_BO, struct drm_vc4_mmap_bo)
4647 #define DRM_IOCTL_VC4_CREATE_SHADER_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_CREATE_SHADER_BO, struct drm_vc4_create_shader_bo)
4748 #define DRM_IOCTL_VC4_GET_HANG_STATE DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_HANG_STATE, struct drm_vc4_get_hang_state)
49+#define DRM_IOCTL_VC4_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_VC4_GET_PARAM, struct drm_vc4_get_param)
4850
4951 struct drm_vc4_submit_rcl_surface {
5052 __u32 hindex; /* Handle index, or ~0 if not present. */
@@ -280,6 +282,17 @@ struct drm_vc4_get_hang_state { · 229 unmodified lines
280282 __u32 pad[16];
281283 };
282284
285+#define DRM_VC4_PARAM_V3D_IDENT0 0
286+#define DRM_VC4_PARAM_V3D_IDENT1 1
287+#define DRM_VC4_PARAM_V3D_IDENT2 2
288+#define DRM_VC4_PARAM_SUPPORTS_BRANCHES 3
289+
290+struct drm_vc4_get_param {
291+ __u32 param;
292+ __u32 pad;
293+ __u64 value;
294+};
295+
283296 #if defined(__cplusplus)
284297 }
285298 #endif

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