|
@@ -2276,21 +2276,19 @@ struct drm_i915_gem_object {
|
|
|
/** Record of address bit 17 of each page at last unbind. */
|
|
|
unsigned long *bit_17;
|
|
|
|
|
|
- union {
|
|
|
- /** for phy allocated objects */
|
|
|
- struct drm_dma_handle *phys_handle;
|
|
|
-
|
|
|
- struct i915_gem_userptr {
|
|
|
- uintptr_t ptr;
|
|
|
- unsigned read_only :1;
|
|
|
- unsigned workers :4;
|
|
|
+ struct i915_gem_userptr {
|
|
|
+ uintptr_t ptr;
|
|
|
+ unsigned read_only :1;
|
|
|
+ unsigned workers :4;
|
|
|
#define I915_GEM_USERPTR_MAX_WORKERS 15
|
|
|
|
|
|
- struct i915_mm_struct *mm;
|
|
|
- struct i915_mmu_object *mmu_object;
|
|
|
- struct work_struct *work;
|
|
|
- } userptr;
|
|
|
- };
|
|
|
+ struct i915_mm_struct *mm;
|
|
|
+ struct i915_mmu_object *mmu_object;
|
|
|
+ struct work_struct *work;
|
|
|
+ } userptr;
|
|
|
+
|
|
|
+ /** for phys allocated objects */
|
|
|
+ struct drm_dma_handle *phys_handle;
|
|
|
};
|
|
|
|
|
|
static inline struct drm_i915_gem_object *
|