packages: Mesa/Mesa-git.patch, Mesa/Mesa.spec - rel 4; update fixes from 7....

arekm arekm at pld-linux.org
Mon Nov 15 15:50:44 CET 2010


Author: arekm                        Date: Mon Nov 15 14:50:44 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 4; update fixes from 7.9 branch

---- Files affected:
packages/Mesa:
   Mesa-git.patch (1.9 -> 1.10) , Mesa.spec (1.259 -> 1.260) 

---- Diffs:

================================================================
Index: packages/Mesa/Mesa-git.patch
diff -u packages/Mesa/Mesa-git.patch:1.9 packages/Mesa/Mesa-git.patch:1.10
--- packages/Mesa/Mesa-git.patch:1.9	Fri Oct 15 21:49:40 2010
+++ packages/Mesa/Mesa-git.patch	Mon Nov 15 15:50:38 2010
@@ -329,8 +329,21 @@
        return NULL;
  
     pipe = smapi->screen->context_create(smapi->screen, NULL);
+diff --git a/src/gallium/state_trackers/xorg/Makefile b/src/gallium/state_trackers/xorg/Makefile
+index cb2c3ae..7a44d28 100644
+--- a/src/gallium/state_trackers/xorg/Makefile
++++ b/src/gallium/state_trackers/xorg/Makefile
+@@ -10,7 +10,7 @@ LIBRARY_INCLUDES = \
+ 	$(shell pkg-config libkms --atleast-version=1.0 \
+ 				&& echo "-DHAVE_LIBKMS") \
+ 	$(shell pkg-config libkms --silence-errors --cflags-only-I) \
+-	$(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
++	$(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto dri2proto) \
+ 	-I$(TOP)/src/gallium/include \
+ 	-I$(TOP)/src/gallium/auxiliary \
+ 	-I$(TOP)/include \
 diff --git a/src/gallium/state_trackers/xorg/xorg_crtc.c b/src/gallium/state_trackers/xorg/xorg_crtc.c
-index 26a907f..c65da71 100644
+index 26a907f..80af82d 100644
 --- a/src/gallium/state_trackers/xorg/xorg_crtc.c
 +++ b/src/gallium/state_trackers/xorg/xorg_crtc.c
 @@ -234,6 +234,10 @@ crtc_load_cursor_argb_ga3d(xf86CrtcPtr crtc, CARD32 * image)
@@ -355,11 +368,168 @@
      return;
  
  err_bo_destroy:
+@@ -353,7 +361,7 @@ crtc_destroy(xf86CrtcPtr crtc)
+ 
+     drmModeFreeCrtc(crtcp->drm_crtc);
+ 
+-    xfree(crtcp);
++    free(crtcp);
+     crtc->driver_private = NULL;
+ }
+ 
+@@ -401,7 +409,7 @@ xorg_crtc_init(ScrnInfoPtr pScrn)
+ 	if (crtc == NULL)
+ 	    goto out;
+ 
+-	crtcp = xcalloc(1, sizeof(struct crtc_private));
++	crtcp = calloc(1, sizeof(struct crtc_private));
+ 	if (!crtcp) {
+ 	    xf86CrtcDestroy(crtc);
+ 	    goto out;
+diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c
+index 704aed6..b723a8e 100644
+--- a/src/gallium/state_trackers/xorg/xorg_dri2.c
++++ b/src/gallium/state_trackers/xorg/xorg_dri2.c
+@@ -201,11 +201,11 @@ dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment, unsigned int form
+     DRI2Buffer2Ptr buffer;
+     BufferPrivatePtr private;
+ 
+-    buffer = xcalloc(1, sizeof *buffer);
++    buffer = calloc(1, sizeof *buffer);
+     if (!buffer)
+ 	return NULL;
+ 
+-    private = xcalloc(1, sizeof *private);
++    private = calloc(1, sizeof *private);
+     if (!private) {
+ 	goto fail;
+     }
+@@ -217,9 +217,9 @@ dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment, unsigned int form
+     if (dri2_do_create_buffer(pDraw, (DRI2BufferPtr)buffer, format))
+ 	return buffer;
+ 
+-    xfree(private);
++    free(private);
+ fail:
+-    xfree(buffer);
++    free(buffer);
+     return NULL;
+ }
+ 
+@@ -229,8 +229,8 @@ dri2_destroy_buffer(DrawablePtr pDraw, DRI2Buffer2Ptr buffer)
+     /* So far it is safe to downcast a DRI2Buffer2Ptr to DRI2BufferPtr */
+     dri2_do_destroy_buffer(pDraw, (DRI2BufferPtr)buffer);
+ 
+-    xfree(buffer->driverPrivate);
+-    xfree(buffer);
++    free(buffer->driverPrivate);
++    free(buffer);
+ }
+ 
+ #endif /* DRI2INFOREC_VERSION >= 2 */
+@@ -244,11 +244,11 @@ dri2_create_buffers(DrawablePtr pDraw, unsigned int *attachments, int count)
+     DRI2BufferPtr buffers;
+     int i;
+ 
+-    buffers = xcalloc(count, sizeof *buffers);
++    buffers = calloc(count, sizeof *buffers);
+     if (!buffers)
+ 	goto fail_buffers;
+ 
+-    privates = xcalloc(count, sizeof *privates);
++    privates = calloc(count, sizeof *privates);
+     if (!privates)
+ 	goto fail_privates;
+ 
+@@ -263,9 +263,9 @@ dri2_create_buffers(DrawablePtr pDraw, unsigned int *attachments, int count)
+     return buffers;
+ 
+ fail:
+-    xfree(privates);
++    free(privates);
+ fail_privates:
+-    xfree(buffers);
++    free(buffers);
+ fail_buffers:
+     return NULL;
+ }
+@@ -280,8 +280,8 @@ dri2_destroy_buffers(DrawablePtr pDraw, DRI2BufferPtr buffers, int count)
+     }
+ 
+     if (buffers) {
+-	xfree(buffers[0].driverPrivate);
+-	xfree(buffers);
++	free(buffers[0].driverPrivate);
++	free(buffers);
+     }
+ }
+ 
 diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
-index e10ff2f..3a5db98 100644
+index e10ff2f..1ec772d 100644
 --- a/src/gallium/state_trackers/xorg/xorg_driver.c
 +++ b/src/gallium/state_trackers/xorg/xorg_driver.c
-@@ -369,6 +369,7 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
+@@ -45,6 +45,7 @@
+ #include "miscstruct.h"
+ #include "dixstruct.h"
+ #include "xf86xv.h"
++#include "xorgVersion.h"
+ #ifndef XSERVER_LIBPCIACCESS
+ #error "libpciaccess needed"
+ #endif
+@@ -122,7 +123,7 @@ xorg_tracker_set_functions(ScrnInfoPtr scrn)
+ Bool
+ xorg_tracker_have_modesetting(ScrnInfoPtr pScrn, struct pci_device *device)
+ {
+-    char *BusID = xalloc(64);
++    char *BusID = malloc(64);
+     sprintf(BusID, "pci:%04x:%02x:%02x.%d",
+ 	    device->domain, device->bus,
+ 	    device->dev, device->func);
+@@ -130,14 +131,14 @@ xorg_tracker_have_modesetting(ScrnInfoPtr pScrn, struct pci_device *device)
+     if (drmCheckModesettingSupported(BusID)) {
+ 	xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0,
+ 		       "Drm modesetting not supported %s\n", BusID);
+-	xfree(BusID);
++	free(BusID);
+ 	return FALSE;
+     }
+ 
+     xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0,
+ 		   "Drm modesetting supported on %s\n", BusID);
+ 
+-    xfree(BusID);
++    free(BusID);
+     return TRUE;
+ }
+ 
+@@ -174,7 +175,7 @@ drv_free_rec(ScrnInfoPtr pScrn)
+     if (!pScrn->driverPrivate)
+ 	return;
+ 
+-    xfree(pScrn->driverPrivate);
++    free(pScrn->driverPrivate);
+ 
+     pScrn->driverPrivate = NULL;
+ }
+@@ -274,7 +275,7 @@ drv_init_drm(ScrnInfoPtr pScrn)
+     if (ms->fd < 0) {
+ 	char *BusID;
+ 
+-	BusID = xalloc(64);
++	BusID = malloc(64);
+ 	sprintf(BusID, "PCI:%d:%d:%d",
+ 		((ms->PciInfo->domain << 8) | ms->PciInfo->bus),
+ 		ms->PciInfo->dev, ms->PciInfo->func
+@@ -283,7 +284,7 @@ drv_init_drm(ScrnInfoPtr pScrn)
+ 
+ 	ms->fd = drmOpen(driver_descriptor.driver_name, BusID);
+ 	ms->isMaster = TRUE;
+-	xfree(BusID);
++	free(BusID);
+ 
+ 	if (ms->fd >= 0)
+ 	    return TRUE;
+@@ -369,6 +370,7 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
      ms = modesettingPTR(pScrn);
      ms->pEnt = pEnt;
      ms->cust = cust;
@@ -367,7 +537,7 @@
  
      pScrn->displayWidth = 640;	       /* default it */
  
-@@ -402,19 +403,6 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
+@@ -402,19 +404,6 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
      if (!drv_init_drm(pScrn))
  	return FALSE;
  
@@ -387,7 +557,13 @@
      pScrn->monitor = pScrn->confScreen->monitor;
      pScrn->progClock = TRUE;
      pScrn->rgbBits = 8;
-@@ -449,6 +437,19 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
+@@ -444,11 +433,24 @@ drv_pre_init(ScrnInfoPtr pScrn, int flags)
+ 
+     /* Process the options */
+     xf86CollectOptions(pScrn, NULL);
+-    if (!(ms->Options = xalloc(sizeof(drv_options))))
++    if (!(ms->Options = malloc(sizeof(drv_options))))
+ 	return FALSE;
      memcpy(ms->Options, drv_options, sizeof(drv_options));
      xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, ms->Options);
  
@@ -407,7 +583,7 @@
      /* Allocate an xf86CrtcConfig */
      xf86CrtcConfigInit(pScrn, &crtc_config_funcs);
      xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
-@@ -791,7 +792,9 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
+@@ -791,7 +793,9 @@ drv_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
      if (!ms->SWCursor)
  	xf86_cursors_init(pScreen, 64, 64,
  			  HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 |
@@ -418,7 +594,7 @@
  
      /* Must force it before EnterVT, so we are in control of VT and
       * later memory should be bound when allocating, e.g rotate_mem */
-@@ -862,8 +865,10 @@ drv_leave_vt(int scrnIndex, int flags)
+@@ -862,8 +866,10 @@ drv_leave_vt(int scrnIndex, int flags)
  	}
      }
  
@@ -431,7 +607,7 @@
  
      /* idle hardware */
      if (!ms->kms)
-@@ -944,7 +949,6 @@ drv_close_screen(int scrnIndex, ScreenPtr pScreen)
+@@ -944,7 +950,6 @@ drv_close_screen(int scrnIndex, ScreenPtr pScreen)
      }
  #endif
  
@@ -439,6 +615,103 @@
      ms->destroy_front_buffer(pScrn);
  
      if (ms->exa)
+@@ -1178,6 +1183,8 @@ drv_bind_front_buffer_kms(ScrnInfoPtr pScrn)
+ 				stride,
+ 				ptr);
+ 
++#if (XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 9, 99, 1, 0))
++
+     /* This a hack to work around EnableDisableFBAccess setting the pointer
+      * the real fix would be to replace pScrn->EnableDisableFBAccess hook
+      * and set the rootPixmap->devPrivate.ptr to something valid before that.
+@@ -1187,6 +1194,8 @@ drv_bind_front_buffer_kms(ScrnInfoPtr pScrn)
+      */
+     pScrn->pixmapPrivate.ptr = ptr;
+ 
++#endif
++
+     return TRUE;
+ 
+ err_destroy:
+diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
+index 6b2c80f..0e5693d 100644
+--- a/src/gallium/state_trackers/xorg/xorg_exa.c
++++ b/src/gallium/state_trackers/xorg/xorg_exa.c
+@@ -720,7 +720,7 @@ ExaCreatePixmap(ScreenPtr pScreen, int size, int align)
+ {
+     struct exa_pixmap_priv *priv;
+ 
+-    priv = xcalloc(1, sizeof(struct exa_pixmap_priv));
++    priv = calloc(1, sizeof(struct exa_pixmap_priv));
+     if (!priv)
+ 	return NULL;
+ 
+@@ -737,7 +737,7 @@ ExaDestroyPixmap(ScreenPtr pScreen, void *dPriv)
+ 
+     pipe_resource_reference(&priv->tex, NULL);
+ 
+-    xfree(priv);
++    free(priv);
+ }
+ 
+ static Bool
+@@ -975,7 +975,7 @@ xorg_exa_close(ScrnInfoPtr pScrn)
+    ms->ctx = NULL;
+ 
+    exaDriverFini(pScrn->pScreen);
+-   xfree(exa);
++   free(exa);
+    ms->exa = NULL;
+ }
+ 
+@@ -987,7 +987,7 @@ xorg_exa_init(ScrnInfoPtr pScrn, Bool accel)
+    ExaDriverPtr pExa;
+    CustomizerPtr cust = ms->cust;
+ 
+-   exa = xcalloc(1, sizeof(struct exa_context));
++   exa = calloc(1, sizeof(struct exa_context));
+    if (!exa)
+       return NULL;
+ 
+diff --git a/src/gallium/state_trackers/xorg/xorg_output.c b/src/gallium/state_trackers/xorg/xorg_output.c
+index 61206ed..5555b51 100644
+--- a/src/gallium/state_trackers/xorg/xorg_output.c
++++ b/src/gallium/state_trackers/xorg/xorg_output.c
+@@ -128,7 +128,7 @@ output_get_modes(xf86OutputPtr output)
+     for (i = 0; i < drm_connector->count_modes; i++) {
+ 	drm_mode = &drm_connector->modes[i];
+ 	if (drm_mode) {
+-	    mode = xcalloc(1, sizeof(DisplayModeRec));
++	    mode = calloc(1, sizeof(DisplayModeRec));
+ 	    if (!mode)
+ 		continue;
+ 	    mode->Clock = drm_mode->clock;
+@@ -195,7 +195,7 @@ output_destroy(xf86OutputPtr output)
+ {
+     struct output_private *priv = output->driver_private;
+     drmModeFreeConnector(priv->drm_connector);
+-    xfree(priv);
++    free(priv);
+     output->driver_private = NULL;
+ }
+ 
+@@ -262,14 +262,14 @@ xorg_output_init(ScrnInfoPtr pScrn)
+ 		 drm_connector->connector_type_id);
+ 
+ 
+-	priv = xcalloc(sizeof(*priv), 1);
++	priv = calloc(sizeof(*priv), 1);
+ 	if (!priv) {
+ 	    continue;
+ 	}
+ 
+ 	output = xf86OutputCreate(pScrn, &output_funcs, name);
+ 	if (!output) {
+-	    xfree(priv);
++	    free(priv);
+ 	    continue;
+ 	}
+ 
 diff --git a/src/gallium/state_trackers/xorg/xorg_tracker.h b/src/gallium/state_trackers/xorg/xorg_tracker.h
 index be1a9fd..a3fb5e5 100644
 --- a/src/gallium/state_trackers/xorg/xorg_tracker.h
@@ -451,6 +724,62 @@
      Bool (*winsys_pre_init) (struct _CustomizerRec *cust, int fd);
      Bool (*winsys_screen_init)(struct _CustomizerRec *cust);
      Bool (*winsys_screen_close)(struct _CustomizerRec *cust);
+diff --git a/src/gallium/state_trackers/xorg/xorg_xv.c b/src/gallium/state_trackers/xorg/xorg_xv.c
+index f98bd93..f64959f 100644
+--- a/src/gallium/state_trackers/xorg/xorg_xv.c
++++ b/src/gallium/state_trackers/xorg/xorg_xv.c
+@@ -536,8 +536,10 @@ display_video(ScrnInfoPtr pScrn, struct xorg_xv_port_priv *pPriv, int id,
+    dst_surf = xorg_gpu_surface(pPriv->r->pipe->screen, dst);
+    hdtv = ((src_w >= RES_720P_X) && (src_h >= RES_720P_Y));
+ 
++#ifdef COMPOSITE
+    REGION_TRANSLATE(pScrn->pScreen, dstRegion, -pPixmap->screen_x,
+                     -pPixmap->screen_y);
++#endif
+ 
+    dxo = dstRegion->extents.x1;
+    dyo = dstRegion->extents.y1;
+@@ -562,11 +564,16 @@ display_video(ScrnInfoPtr pScrn, struct xorg_xv_port_priv *pPriv, int id,
+       int box_y2 = pbox->y2;
+       float diff_x = (float)src_w / (float)dst_w;
+       float diff_y = (float)src_h / (float)dst_h;
+-      float offset_x = box_x1 - dstX + pPixmap->screen_x;
+-      float offset_y = box_y1 - dstY + pPixmap->screen_y;
++      float offset_x = box_x1 - dstX;
++      float offset_y = box_y1 - dstY;
+       float offset_w;
+       float offset_h;
+ 
++#ifdef COMPOSITE
++      offset_x += pPixmap->screen_x;
++      offset_y += pPixmap->screen_y;
++#endif
++
+       x = box_x1;
+       y = box_y1;
+       w = box_x2 - box_x1;
+diff --git a/src/gallium/targets/Makefile.xorg b/src/gallium/targets/Makefile.xorg
+index 762c905..87eedd7 100644
+--- a/src/gallium/targets/Makefile.xorg
++++ b/src/gallium/targets/Makefile.xorg
+@@ -29,7 +29,7 @@ INCLUDES = \
+ LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
+ 
+ ifeq ($(MESA_LLVM),1)
+-LD = g++
++LD = $(CXX)
+ LDFLAGS += $(LLVM_LDFLAGS)
+ USE_CXX=1
+ DRIVER_PIPES += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
+@@ -42,7 +42,7 @@ endif
+ default: depend $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
+ 
+ $(LIBNAME): $(OBJECTS) Makefile ../Makefile.xorg $(LIBS) $(DRIVER_PIPES)
+-	$(MKLIB) -noprefix -o $@ $(LDFLAGS) $(OBJECTS) $(DRIVER_PIPES) $(GALLIUM_AUXILIARIES) $(DRIVER_LINKS)
++	$(MKLIB) -linker $(CC) -noprefix -o $@ $(LDFLAGS) $(OBJECTS) $(DRIVER_PIPES) $(GALLIUM_AUXILIARIES) $(DRIVER_LINKS)
+ 
+ depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS) $(GENERATED_SOURCES)
+ 	rm -f depend
 diff --git a/src/gallium/targets/egl/Makefile b/src/gallium/targets/egl/Makefile
 index 47c24ce..38e60db 100644
 --- a/src/gallium/targets/egl/Makefile
@@ -481,8 +810,20 @@
  endif
  ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
  egl_LIBS += $(TOP)/src/gallium/winsys/sw/fbdev/libfbdev.a
+diff --git a/src/gallium/targets/egl/pipe_i965.c b/src/gallium/targets/egl/pipe_i965.c
+index 43bf646..36b03b3 100644
+--- a/src/gallium/targets/egl/pipe_i965.c
++++ b/src/gallium/targets/egl/pipe_i965.c
+@@ -1,6 +1,7 @@
+ 
+ #include "target-helpers/inline_wrapper_sw_helper.h"
+ #include "target-helpers/inline_debug_helper.h"
++#include "target-helpers/inline_wrapper_sw_helper.h"
+ #include "state_tracker/drm_driver.h"
+ #include "i965/drm/i965_drm_public.h"
+ #include "i965/brw_public.h"
 diff --git a/src/gallium/targets/xorg-vmwgfx/vmw_ctrl.c b/src/gallium/targets/xorg-vmwgfx/vmw_ctrl.c
-index 237b308..9c075b5 100644
+index 237b308..9b422e6 100644
 --- a/src/gallium/targets/xorg-vmwgfx/vmw_ctrl.c
 +++ b/src/gallium/targets/xorg-vmwgfx/vmw_ctrl.c
 @@ -32,6 +32,7 @@
@@ -493,6 +834,55 @@
  #include "dixstruct.h"
  #include "extnsionst.h"
  #include <X11/X.h>
+@@ -211,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;
+ 
+@@ -224,7 +225,7 @@ VMwareCtrlDoSetTopology(ScrnInfoPtr pScrn,
+ 
+    vmw_ioctl_update_layout(vmw, number, rects);
+ 
+-   xfree(rects);
++   free(rects);
+    return TRUE;
+ }
+ 
+diff --git a/src/gallium/targets/xorg-vmwgfx/vmw_ioctl.c b/src/gallium/targets/xorg-vmwgfx/vmw_ioctl.c
+index 7c799b5..7625d2f 100644
+--- a/src/gallium/targets/xorg-vmwgfx/vmw_ioctl.c
++++ b/src/gallium/targets/xorg-vmwgfx/vmw_ioctl.c
+@@ -165,7 +165,7 @@ vmw_ioctl_buffer_create(struct vmw_customizer *vmw, uint32_t size, unsigned *han
+     struct drm_vmw_dmabuf_rep *rep = &arg.rep;
+     int ret;
+ 
+-    buf = xcalloc(1, sizeof(*buf));
++    buf = calloc(1, sizeof(*buf));
+     if (!buf)
+ 	goto err;
+ 
+@@ -192,7 +192,7 @@ vmw_ioctl_buffer_create(struct vmw_customizer *vmw, uint32_t size, unsigned *han
+     return buf;
+ 
+ err_free:
+-    xfree(buf);
++    free(buf);
+ err:
+     return NULL;
+ }
+@@ -211,7 +211,7 @@ vmw_ioctl_buffer_destroy(struct vmw_customizer *vmw, struct vmw_dma_buffer *buf)
+     arg.handle = buf->handle; 
+     drmCommandWrite(vmw->fd, DRM_VMW_UNREF_DMABUF, &arg, sizeof(arg)); 
+ 
+-    xfree(buf); 
++    free(buf);
+ } 
+ 
+ void *
 diff --git a/src/gallium/targets/xorg-vmwgfx/vmw_screen.c b/src/gallium/targets/xorg-vmwgfx/vmw_screen.c
 index 8173908..7662203 100644
 --- a/src/gallium/targets/xorg-vmwgfx/vmw_screen.c
@@ -505,11 +895,87 @@
      vmw->pScrn = pScrn;
  
      pScrn->driverPrivate = cust;
+diff --git a/src/gallium/targets/xorg-vmwgfx/vmw_video.c b/src/gallium/targets/xorg-vmwgfx/vmw_video.c
+index eced60d..94465e5 100644
+--- a/src/gallium/targets/xorg-vmwgfx/vmw_video.c
++++ b/src/gallium/targets/xorg-vmwgfx/vmw_video.c
+@@ -300,7 +300,7 @@ vmw_video_init(struct vmw_customizer *vmw)
+         numAdaptors = 1;
+         overlayAdaptors = &newAdaptor;
+     } else {
+-         newAdaptors = xalloc((numAdaptors + 1) *
++         newAdaptors = malloc((numAdaptors + 1) *
+                               sizeof(XF86VideoAdaptorPtr*));
+          if (!newAdaptors) {
+             xf86XVFreeVideoAdaptorRec(newAdaptor);
+@@ -320,7 +320,7 @@ vmw_video_init(struct vmw_customizer *vmw)
+     }
+ 
+     if (newAdaptors) {
+-        xfree(newAdaptors);
++        free(newAdaptors);
+     }
+ 
+     debug_printf("Initialized VMware Xv extension successfully\n");
+@@ -438,7 +438,7 @@ vmw_video_init_adaptor(ScrnInfoPtr pScrn, struct vmw_customizer *vmw)
+         return NULL;
+     }
+ 
+-    video = xcalloc(1, sizeof(*video));
++    video = calloc(1, sizeof(*video));
+     if (!video) {
+         debug_printf("Not enough memory.\n");
+         xf86XVFreeVideoAdaptorRec(adaptor);
+@@ -742,7 +742,7 @@ vmw_video_buffer_alloc(struct vmw_customizer *vmw, int size,
+     }
+ 
+     out->size = size;
+-    out->extra_data = xcalloc(1, size);
++    out->extra_data = calloc(1, size);
+ 
+     debug_printf("\t\t%s: allocated buffer %p of size %i\n", __func__, out, size);
+ 
+@@ -773,7 +773,7 @@ vmw_video_buffer_free(struct vmw_customizer *vmw,
+     if (out->size == 0)
+ 	return Success;
+ 
+-    xfree(out->extra_data);
++    free(out->extra_data);
+     vmw_ioctl_buffer_unmap(vmw, out->buf);
+     vmw_ioctl_buffer_destroy(vmw, out->buf);
+ 
+diff --git a/src/mesa/Makefile b/src/mesa/Makefile
+index c41c38c..7a6936e 100644
+--- a/src/mesa/Makefile
++++ b/src/mesa/Makefile
+@@ -34,7 +34,7 @@ ES1_CPPFLAGS := -DFEATURE_ES1=1 $(DEFINES)
+ ES2_CPPFLAGS := -DFEATURE_ES2=1 $(DEFINES)
+ 
+ # append include dirs
+-MESA_CPPFLAGS += $(INCLUDE_DIRS)
++MESA_CPPFLAGS += $(INCLUDE_DIRS) $(TALLOC_CFLAGS)
+ ES1_CPPFLAGS += -I$(TOP)/src/mapi/es1api $(INCLUDE_DIRS)
+ ES2_CPPFLAGS += -I$(TOP)/src/mapi/es2api $(INCLUDE_DIRS)
+ 
 diff --git a/src/mesa/drivers/dri/r200/r200_swtcl.c b/src/mesa/drivers/dri/r200/r200_swtcl.c
-index dbf4ad4..effe6fb 100644
+index dbf4ad4..160e7e7 100644
 --- a/src/mesa/drivers/dri/r200/r200_swtcl.c
 +++ b/src/mesa/drivers/dri/r200/r200_swtcl.c
-@@ -613,6 +613,9 @@ static void r200RasterPrimitive( GLcontext *ctx, GLuint hwprim )
+@@ -319,10 +319,9 @@ static INLINE GLuint reduced_hw_prim( GLcontext *ctx, GLuint prim)
+ {
+    switch (prim) {
+    case GL_POINTS:
+-      return (ctx->Point.PointSprite ||
+-	 ((ctx->_TriangleCaps & (DD_POINT_SIZE | DD_POINT_ATTEN)) &&
+-	 !(ctx->_TriangleCaps & (DD_POINT_SMOOTH)))) ?
+-	 R200_VF_PRIM_POINT_SPRITES : R200_VF_PRIM_POINTS;
++      return (((R200_CONTEXT(ctx))->radeon.radeonScreen->drmSupportsPointSprites &&
++              !(ctx->_TriangleCaps & DD_POINT_SMOOTH)) ?
++	 R200_VF_PRIM_POINT_SPRITES : R200_VF_PRIM_POINTS);
+    case GL_LINES:
+    /* fallthrough */
+    case GL_LINE_LOOP:
+@@ -613,6 +612,9 @@ static void r200RasterPrimitive( GLcontext *ctx, GLuint hwprim )
     r200ContextPtr rmesa = R200_CONTEXT(ctx);
  
     radeon_prepare_render(&rmesa->radeon);
@@ -520,10 +986,22 @@
     if (rmesa->radeon.swtcl.hw_primitive != hwprim) {
        /* need to disable perspective-correct texturing for point sprites */
 diff --git a/src/mesa/drivers/dri/r200/r200_tcl.c b/src/mesa/drivers/dri/r200/r200_tcl.c
-index 4ae0f30..ba54177 100644
+index 4ae0f30..2743997 100644
 --- a/src/mesa/drivers/dri/r200/r200_tcl.c
 +++ b/src/mesa/drivers/dri/r200/r200_tcl.c
-@@ -265,6 +265,8 @@ void r200TclPrimitive( GLcontext *ctx,
+@@ -68,9 +68,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #define HAVE_ELTS        1
+ 
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Mesa/Mesa-git.patch?r1=1.9&r2=1.10&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Mesa/Mesa.spec?r1=1.259&r2=1.260&f=u



More information about the pld-cvs-commit mailing list