r600g: fix miptree calculations
[mesa.git] / src / gallium / targets / xorg-vmwgfx / vmw_ctrl.c
index 1cc8ddaac34c1accbb375a974b5e7c5dd50c5b79..9b422e661bfdd7dc373624b23fc82a722a4bde3e 100644 (file)
@@ -32,9 +32,7 @@
  *      allows X clients to communicate with the driver.
  */
 
-
-#define NEED_REPLIES
-#define NEED_EVENTS
+#include <xorg-server.h>
 #include "dixstruct.h"
 #include "extnsionst.h"
 #include <X11/X.h>
@@ -214,7 +212,7 @@ VMwareCtrlDoSetTopology(ScrnInfoPtr pScrn,
    struct vmw_customizer *vmw = vmw_customizer(xorg_customizer(pScrn));
    int i;
 
-   rects = xcalloc(number, sizeof(*rects));
+   rects = calloc(number, sizeof(*rects));
    if (!rects)
       return FALSE;
 
@@ -227,7 +225,7 @@ VMwareCtrlDoSetTopology(ScrnInfoPtr pScrn,
 
    vmw_ioctl_update_layout(vmw, number, rects);
 
-   xfree(rects);
+   free(rects);
    return TRUE;
 }