From: Stephane M. <mar...@ic...> - 2005-01-20 02:02:25
|
Michel D=C3=A4nzer wrote: >>fixed a copy & paste error in the non-core drm version, and it actually= =20 >>auto-refreshes the screen when switching between a tiled and untiled re= solution... >> > >Nice. > >What happened to Stephane's surface allocator, BTW? If you just whack >the surface registers directly from the X server, it becomes hard if not >impossible to introduce such an allocator, at least for the surfaces >touched directly by the X server... > Ok, I'm late, but here it is. Also attached is the small patch for the ddx. It is supposed to be used with the drmCommand interface, btw : drmRadeonSurfaceAlloc drmalloc_front; drmalloc_front.lower=3D(info->frontOffset) &~0x3ff ; drmalloc_front.size=3DbufferSize -1 ; drmalloc_front.flags=3Dpitch | RADEON_SURF_TILE_COLOR_MACRO; drmCommandWrite(info->drmFD, DRM_RADEON_SURF_ALLOC,=20 &drmalloc_front,sizeof(drmalloc_front)); Stephane |