Subversion Repositories Kolibri OS

Rev

Rev 3243 | Rev 3263 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3243 Rev 3255
Line 910... Line 910...
910
	ret = i915_dispatch_flip(dev);
910
	ret = i915_dispatch_flip(dev);
911
	mutex_unlock(&dev->struct_mutex);
911
	mutex_unlock(&dev->struct_mutex);
Line 912... Line 912...
912
 
912
 
913
	return ret;
913
	return ret;
-
 
914
}
Line 914... Line 915...
914
}
915
#endif
915
 
916
 
916
static int i915_getparam(struct drm_device *dev, void *data,
917
static int i915_getparam(struct drm_device *dev, void *data,
917
			 struct drm_file *file_priv)
918
			 struct drm_file *file_priv)
Line 989... Line 990...
989
		break;
990
		break;
990
	case I915_PARAM_HAS_PRIME_VMAP_FLUSH:
991
	case I915_PARAM_HAS_PRIME_VMAP_FLUSH:
991
		value = 1;
992
		value = 1;
992
		break;
993
		break;
993
	case I915_PARAM_HAS_SECURE_BATCHES:
994
	case I915_PARAM_HAS_SECURE_BATCHES:
994
		value = capable(CAP_SYS_ADMIN);
995
        value = 1;
995
		break;
996
		break;
996
	case I915_PARAM_HAS_PINNED_BATCHES:
997
	case I915_PARAM_HAS_PINNED_BATCHES:
997
		value = 1;
998
		value = 1;
998
		break;
999
		break;
999
	default:
1000
	default:
1000
		DRM_DEBUG_DRIVER("Unknown parameter %d\n",
1001
		DRM_DEBUG_DRIVER("Unknown parameter %d\n",
1001
				 param->param);
1002
				 param->param);
1002
		return -EINVAL;
1003
		return -EINVAL;
1003
	}
1004
	}
Line 1004... Line 1005...
1004
 
1005
 
1005
	if (DRM_COPY_TO_USER(param->value, &value, sizeof(int))) {
1006
//   if (DRM_COPY_TO_USER(param->value, &value, sizeof(int))) {
1006
		DRM_ERROR("DRM_COPY_TO_USER failed\n");
1007
//       DRM_ERROR("DRM_COPY_TO_USER failed\n");
-
 
1008
//       return -EFAULT;
1007
		return -EFAULT;
1009
//   }
-
 
1010
 
Line 1008... Line 1011...
1008
	}
1011
    *param->value = value;
1009
 
1012
 
Line -... Line 1013...
-
 
1013
	return 0;
1010
	return 0;
1014
}
1011
}
1015
 
1012
 
1016
#if 0
1013
static int i915_setparam(struct drm_device *dev, void *data,
1017
static int i915_setparam(struct drm_device *dev, void *data,
1014
			 struct drm_file *file_priv)
1018
			 struct drm_file *file_priv)
Line 1670... Line 1674...
1670
int i915_driver_device_is_agp(struct drm_device * dev)
1674
int i915_driver_device_is_agp(struct drm_device * dev)
1671
{
1675
{
1672
	return 1;
1676
	return 1;
1673
}
1677
}
1674
#endif
1678
#endif
-
 
1679
 
-
 
1680
 
-
 
1681
int gem_getparam(struct drm_device *dev, void *data)
-
 
1682
{
-
 
1683
    return i915_getparam(dev, data, NULL);
-
 
1684
};