From 165c21d23ac526958e90807376c444de25c71d86 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Tue, 20 Feb 2001 23:15:25 +0000 Subject: Initial CCE 2D acceleration code for the Rage 128 driver. Managed completely within the X server, zero ioctls required for the actual rendering commands. Need to move Sync() routine into X server as it still uses an ioctl, but this should be trivial. --- linux/Makefile.linux | 18 ++++++++++++------ linux/r128_cce.c | 3 +++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/linux/Makefile.linux b/linux/Makefile.linux index 7c1269c6..e83066c9 100644 --- a/linux/Makefile.linux +++ b/linux/Makefile.linux @@ -206,12 +206,14 @@ dristat: dristat.c $(CC) $(PRGCFLAGS) $< -o $@ gamma_drv.o: gamma_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ gamma.o: $(GAMMAOBJS) $(LD) -r $^ -o $@ tdfx_drv.o: tdfx_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ tdfx.o: $(TDFXOBJS) $(LIBS) $(LD) -r $^ -o $@ @@ -220,22 +222,26 @@ sis.o: $(SISOBJS) $(LIBS) ifeq ($(AGP),1) mga_drv.o: mga_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ mga.o: $(MGAOBJS) $(LD) -r $^ -o $@ i810_drv.o: i810_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ i810.o: $(I810OBJS) $(LIBS) $(LD) -r $^ -o $@ r128_drv.o: r128_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ r128.o: $(R128OBJS) $(LIBS) $(LD) -r $^ -o $@ radeon_drv.o: radeon_drv.c - $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ + $(CC) $(MODCFLAGS) -I$(TREE) -c $< -o $@ +# $(CC) $(MODCFLAGS) -DEXPORT_SYMTAB -I$(TREE) -c $< -o $@ radeon.o: $(RADEONOBJS) $(LIBS) $(LD) -r $^ -o $@ endif diff --git a/linux/r128_cce.c b/linux/r128_cce.c index 40d81938..9e10bb42 100644 --- a/linux/r128_cce.c +++ b/linux/r128_cce.c @@ -484,6 +484,9 @@ static int r128_do_init_cce( drm_device_t *dev, drm_r128_init_t *init ) dev_priv->ring.status = ((drm_r128_ring_status_t *) dev_priv->status->handle); + dev_priv->ring.status->head = 0; + dev_priv->ring.status->tail = 0; + dev_priv->ring.status->space = init->ring_size; dev_priv->ring.start = (u32 *)dev_priv->cce_ring->handle; dev_priv->ring.size = init->ring_size; -- cgit v1.2.3