radeon: add some handles to the sarea + kernel mm available check
authorDave Airlie <airlied@redhat.com>
Wed, 30 Jul 2008 07:05:50 +0000 (17:05 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 30 Jul 2008 07:05:50 +0000 (17:05 +1000)
shared-core/radeon_drm.h
shared-core/radeon_state.c

index c20de56..8ee1baa 100644 (file)
@@ -455,6 +455,13 @@ typedef struct {
        int tiling_enabled;     /* set by drm, read by 2d + 3d clients */
 
        unsigned int last_fence;
+
+       uint32_t front_handle;
+       uint32_t back_handle;
+       uint32_t depth_handle;
+       uint32_t front_pitch;
+       uint32_t back_pitch;
+       uint32_t depth_pitch;
 } drm_radeon_sarea_t;
 
 
@@ -705,6 +712,7 @@ typedef struct drm_radeon_indirect {
 #define RADEON_PARAM_VBLANK_CRTC           13   /* VBLANK CRTC */
 #define RADEON_PARAM_FB_LOCATION           14   /* FB location */
 #define RADEON_PARAM_NUM_GB_PIPES          15   /* num GB pipes */
+#define RADEON_PARAM_KERNEL_MM             16
 
 typedef struct drm_radeon_getparam {
        int param;
index d56dac1..00160fb 100644 (file)
@@ -3117,6 +3117,10 @@ static int radeon_cp_getparam(struct drm_device *dev, void *data, struct drm_fil
        case RADEON_PARAM_NUM_GB_PIPES:
                value = dev_priv->num_gb_pipes;
                break;
+       case RADEON_PARAM_KERNEL_MM:
+               /* BSD TODO */
+               value = 1;
+               break;
        default:
                DRM_DEBUG( "Invalid parameter %d\n", param->param );
                return -EINVAL;