Skip to content
Snippets Groups Projects
Commit cf4c9ada authored by Brian Paul's avatar Brian Paul
Browse files

another DOS driver update

parent 13c751a1
No related branches found
No related tags found
Loading
Showing
with 57 additions and 62 deletions
Mesa 4.0 DOS/DJGPP Port version 0.4 Mesa 4.0 DOS/DJGPP Port v1.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -20,11 +20,13 @@ MESA copyright applies. ...@@ -20,11 +20,13 @@ MESA copyright applies.
Installation: Installation:
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Type "make -f Makefile.DJ" to compile the libraries. Long filename support is Type "make -f Makefile.DJ" to compile the libraries. Make accepts some options
required during compilation. Also, you must have the DXE2 package (available which are passed to compiler: the target cpu (CPU=..., default=`pentium') and
on SimTel.Net, courtesy of Andrew Zabolotny) installed in order to build the X86 specific options (HAVE_X86=1, HAVE_MMX=1, HAVE_SSE=1, HAVE_3DNOW=1). The
dynamic modules; if you encounter errors, you can fetch a patched version from core library (libGL) requires LFN support during compilation. Also, you must
my web page. have the DXE2 package (available on SimTel.Net, courtesy of Andrew Zabolotny)
installed in order to build the dynamic modules; if you encounter errors, you
can fetch a patched version from my web page.
The demos are not built automagically (see Pitfalls below). To make them, use The demos are not built automagically (see Pitfalls below). To make them, use
one of the following rules: one of the following rules:
Static: Static:
...@@ -72,7 +74,7 @@ Pitfalls: ...@@ -72,7 +74,7 @@ Pitfalls:
libGLU: libGLU:
~~~~~~~ ~~~~~~~
Mesa GLU sources are required. No comment! Mesa GLU sources are required.
...@@ -118,20 +120,7 @@ However, the video mode is chosen in such a way that first window will fit. ...@@ -118,20 +120,7 @@ However, the video mode is chosen in such a way that first window will fit.
History: History:
~~~~~~~~ ~~~~~~~~
v0.1 feb-2002 initial release v1.0 mar-2002 initial release
v0.2 feb-2002 + fast triangle rasterizers
+ enabled sw and 1.3 extensions
+ hardware acceleration: FreeBE/AF
+ single-buffer modes (15-, 16-, and 32-bit)
* video mode is set by CreateVisual, not MakeCurrent
* internal changes to support multi-buf (unfinished)
! fixed some alpha issues... (thanks, Brian)
+ glut has now an internal timer
* glut changed to support multi-window (unfinished)
! minor PC_HW corrections
v0.3 mar-2002 - removed FreeBE/AF code
- removed single-buffer modes
v0.4 mar-2002 + dynamic module support
......
Mesa 4.0.2 release notes Mesa 4.0.2 release notes
March 25, 2002 April 2, 2002
PLEASE READ!!!! PLEASE READ!!!!
...@@ -47,4 +47,4 @@ D3D needs updating ...@@ -47,4 +47,4 @@ D3D needs updating
---------------------------------------------------------------------- ----------------------------------------------------------------------
$Id: RELNOTES-4.0.2,v 1.1.2.2 2002/03/23 02:22:01 brianp Exp $ $Id: RELNOTES-4.0.2,v 1.1.2.3 2002/04/01 16:54:11 brianp Exp $
$Id: VERSIONS,v 1.73.2.21 2002/03/23 02:22:01 brianp Exp $ $Id: VERSIONS,v 1.73.2.22 2002/04/01 16:54:11 brianp Exp $
Mesa Version History Mesa Version History
...@@ -926,7 +926,7 @@ Mesa Version History ...@@ -926,7 +926,7 @@ Mesa Version History
- fixed bug in normal length caching (ParaView lighting bug) - fixed bug in normal length caching (ParaView lighting bug)
- fixed separate_specular color bug found in Chimera (18 Dec 2001) - fixed separate_specular color bug found in Chimera (18 Dec 2001)
4.0.2 March 25, 2002 4.0.2 April 2, 2002
New: New:
- New DOS (DJGPP) driver written by Daniel Borca - New DOS (DJGPP) driver written by Daniel Borca
- New driver interface functions for TCL drivers (such as Radeon DRI) - New driver interface functions for TCL drivers (such as Radeon DRI)
...@@ -947,5 +947,7 @@ Mesa Version History ...@@ -947,5 +947,7 @@ Mesa Version History
- N threads rendering into one window didn't work reliably - N threads rendering into one window didn't work reliably
- glCopyPixels didn't work for deep color channels - glCopyPixels didn't work for deep color channels
- improved 8 -> 16bit/channel texture image conversion (Gerk Huisma) - improved 8 -> 16bit/channel texture image conversion (Gerk Huisma)
- glPopAttrib() didn't correctly restore user clip planes
- user clip planes failed for some perspective projections (Chromium)
Known bugs: Known bugs:
- mipmap LOD computation - mipmap LOD computation
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
*/ */
/* /*
* DOS/DJGPP device driver v0.2 for Mesa 4.0 * DOS/DJGPP device driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
...@@ -62,6 +62,10 @@ DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share); ...@@ -62,6 +62,10 @@ DMesaContext DMesaCreateContext (DMesaVisual visual, DMesaContext share);
void DMesaDestroyContext (DMesaContext c); void DMesaDestroyContext (DMesaContext c);
GLboolean DMesaViewport (DMesaBuffer b,
GLint xpos, GLint ypos,
GLint width, GLint height);
GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b); GLboolean DMesaMakeCurrent (DMesaContext c, DMesaBuffer b);
void DMesaSwapBuffers (DMesaBuffer b); void DMesaSwapBuffers (DMesaBuffer b);
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# DOS/DJGPP glu makefile v0.4 for Mesa 4.0 # DOS/DJGPP glu makefile v1.0 for Mesa 4.0
# #
# Copyright (C) 2002 - Borca Daniel # Copyright (C) 2002 - Borca Daniel
# Email : dborca@yahoo.com # Email : dborca@yahoo.com
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
TOP = .. TOP = ..
CC = gcc CC = gcc
CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=pentium -ffast-math -O2 CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=$(CPU) -ffast-math -O2
AR = ar AR = ar
ARFLAGS = ruv ARFLAGS = ruv
LIBDIR = $(TOP)/lib LIBDIR = $(TOP)/lib
...@@ -73,10 +73,10 @@ $(LIBDIR)/$(GLU_LIB): $(OBJECTS) ...@@ -73,10 +73,10 @@ $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
$(LIBDIR)/$(GLU_DXE) $(LIBDIR)/$(GLU_IMP): $(OBJECTS) $(LIBDIR)/$(GLU_DXE) $(LIBDIR)/$(GLU_IMP): $(OBJECTS)
ifeq ($(DXE2GEN),) ifeq ($(DXE2GEN),)
@echo Missing DXE2GEN and/or DXE2.LD! You must have DXE2GEN $(warning Missing DXE2GEN and/or DXE2.LD! You must have DXE2GEN)
@echo somewhere in PATH, and DXE2.LD in DJGPP/LIB directory. $(warning somewhere in PATH, and DXE2.LD in DJGPP/LIB directory.)
else else
dxe2gen -o $(LIBDIR)/$(GLU_DXE) -I $(LIBDIR)/$(GLU_IMP) $(OBJECTS) -D "Glu" -U dxe2gen -o $(LIBDIR)/$(GLU_DXE) -I $(LIBDIR)/$(GLU_IMP) $(OBJECTS) -D "Mesa DOS GLU" -U
endif endif
clean: clean:
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# DOS/DJGPP glut makefile v0.4 for Mesa 4.0 # DOS/DJGPP glut makefile v1.0 for Mesa 4.0
# #
# Copyright (C) 2002 - Borca Daniel # Copyright (C) 2002 - Borca Daniel
# Email : dborca@yahoo.com # Email : dborca@yahoo.com
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
TOP = .. TOP = ..
CC = gcc CC = gcc
CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=pentium -ffast-math -O2 CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=$(CPU) -ffast-math -O2
AR = ar AR = ar
ARFLAGS = ruv ARFLAGS = ruv
LIBDIR = $(TOP)/lib LIBDIR = $(TOP)/lib
...@@ -59,23 +59,23 @@ CORE_SOURCES = \ ...@@ -59,23 +59,23 @@ CORE_SOURCES = \
teapot.c \ teapot.c \
window.c window.c
PC_HW_OBJECTS = \ PC_HW_SOURCES = \
PC_HW/pc_hw.o \ PC_HW/pc_hw.c \
PC_HW/pc_keyb.o \ PC_HW/pc_keyb.c \
PC_HW/pc_mouse.o \ PC_HW/pc_mouse.c \
PC_HW/pc_timer.o \ PC_HW/pc_timer.c \
PC_HW/pc_irq.o PC_HW/pc_irq.S
SOURCES = $(CORE_SOURCES) SOURCES = $(CORE_SOURCES) $(PC_HW_SOURCES)
OBJECTS = $(SOURCES:.c=.o) $(PC_HW_OBJECTS) OBJECTS = $(addsuffix .o,$(basename $(SOURCES)))
.c.o:
gcc -o $@ -c $(CFLAGS) $<
.S.o: .S.o:
gcc -o $@ -c $(CFLAGS) $< gcc -o $@ -c $(CFLAGS) $<
.s.o: .s.o:
gcc -o $@ -c $(CFLAGS) $(<:.s=.S) gcc -o $@ -c $(CFLAGS) $(<:.s=.S)
.c.o:
gcc -o $@ -c $(CFLAGS) $<
all: $(LIBDIR)/$(GLUT_LIB) $(LIBDIR)/$(GLUT_DXE) $(LIBDIR)/$(GLUT_IMP) all: $(LIBDIR)/$(GLUT_LIB) $(LIBDIR)/$(GLUT_DXE) $(LIBDIR)/$(GLUT_IMP)
...@@ -84,10 +84,10 @@ $(LIBDIR)/$(GLUT_LIB): $(OBJECTS) ...@@ -84,10 +84,10 @@ $(LIBDIR)/$(GLUT_LIB): $(OBJECTS)
$(LIBDIR)/$(GLUT_DXE) $(LIBDIR)/$(GLUT_IMP): $(OBJECTS) $(LIBDIR)/$(GLUT_DXE) $(LIBDIR)/$(GLUT_IMP): $(OBJECTS)
ifeq ($(DXE2GEN),) ifeq ($(DXE2GEN),)
@echo Missing DXE2GEN and/or DXE2.LD! You must have DXE2GEN $(warning Missing DXE2GEN and/or DXE2.LD! You must have DXE2GEN)
@echo somewhere in PATH, and DXE2.LD in DJGPP/LIB directory. $(warning somewhere in PATH, and DXE2.LD in DJGPP/LIB directory.)
else else
dxe2gen -o $(LIBDIR)/$(GLUT_DXE) -I $(LIBDIR)/$(GLUT_IMP) $(OBJECTS) -D "DOS Glut" -U dxe2gen -o $(LIBDIR)/$(GLUT_DXE) -I $(LIBDIR)/$(GLUT_IMP) $(OBJECTS) -D "Mesa DOS GLUT" -U
endif endif
clean: clean:
...@@ -102,7 +102,7 @@ init.o: init.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h ...@@ -102,7 +102,7 @@ init.o: init.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h
menu.o: menu.c ../include/GL/glut.h menu.o: menu.c ../include/GL/glut.h
models.o: models.c ../include/GL/glut.h models.o: models.c ../include/GL/glut.h
overlay.o: overlay.c ../include/GL/glut.h overlay.o: overlay.c ../include/GL/glut.h
state.o: state.c ../include/GL/glut.h internal.h pc_hw/pc_hw.h state.o: state.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h
teapot.o: teapot.c ../include/GL/glut.h teapot.o: teapot.c ../include/GL/glut.h
window.o: window.c ../include/GL/glut.h ../include/GL/dmesa.h internal.h \ window.o: window.c ../include/GL/glut.h ../include/GL/dmesa.h internal.h \
PC_HW/pc_hw.h PC_HW/pc_hw.h
......
/* /*
* PC/HW routine collection v0.1 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
/* /*
* PC/HW routine collection v0.4 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
/* /*
* PC/HW routine collection v0.2 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
/* /*
* PC/HW routine collection v0.4 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
/* /*
* PC/HW routine collection v0.4 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
/* /*
* PC/HW routine collection v0.1 for DOS/DJGPP * PC/HW routine collection v1.0 for DOS/DJGPP
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.4 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.2 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
*/ */
/* /*
* DOS/DJGPP glut driver v0.1 for Mesa 4.0 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
* *
* Copyright (C) 2002 - Borca Daniel * Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com * Email : dborca@yahoo.com
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment