Skip to content

Commit

Permalink
i915/drm: provide compat defines for userspace for certain struct mem…
Browse files Browse the repository at this point in the history
…bers.

Painfully userspace started using new names that were never actually to be
used from the external repo.

Also fill out the gaps in the structure for old/new userspace compat

Add compat defines for these structs.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Dec 29, 2008
1 parent 0c7c266 commit dfef245
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions include/drm/i915_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,31 @@ typedef struct _drm_i915_sarea {
int pipeB_y;
int pipeB_w;
int pipeB_h;

/* fill out some space for old userspace triple buffer */
drm_handle_t unused_handle;
uint32_t unused1, unused2, unused3;

/* buffer object handles for static buffers. May change
* over the lifetime of the client.
*/
uint32_t front_bo_handle;
uint32_t back_bo_handle;
uint32_t unused_bo_handle;
uint32_t depth_bo_handle;

} drm_i915_sarea_t;

/* due to userspace building against these headers we need some compat here */
#define planeA_x pipeA_x
#define planeA_y pipeA_y
#define planeA_w pipeA_w
#define planeA_h pipeA_h
#define planeB_x pipeB_x
#define planeB_y pipeB_y
#define planeB_w pipeB_w
#define planeB_h pipeB_h

/* Flags for perf_boxes
*/
#define I915_BOX_RING_EMPTY 0x1
Expand Down

0 comments on commit dfef245

Please sign in to comment.