tor, 29.04.2004 kl. 16.45 skrev Keith Whitwell: > Keith Whitwell wrote: > > Ronny V. Vindenes wrote: > > > >> 0x0000002a9579b885 in DoBindContext (dpy=0x5045a0, draw=52428802, > >> read=52428802, ctx=0x511070, modes=0x50c4d0, psp=0x50ed40) > >> at dri_util.c:480 > >> 480 DRM_SPINLOCK(&psp->pSAREA->drawable_lock, > >> psp->drawLockID); > > > > > > OK, it looks like there might be some x86_64 magic missing to get > > spinlocks working... > > Please try this diff - it will complain if no DRM_CAS is defined, which is one > way to cause the infinite loop in DRM_SPINLOCK. > > Keith >
That helped track it down. Using this target instead of the one I posted earlier fixes it. -- Ronny V. Vindenes <[EMAIL PROTECTED]>
# -*-makefile-*- # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others include $(TOP)/configs/default CONFIG_NAME = linux-dri-x86-64 # Compiler and flags CC = gcc CXX = g++ CFLAGS = -Wmissing-prototypes -g -std=c99 -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -D_GNU_SOURCE -DGLX_DIRECT_RENDERING -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions -D__AMD64__ CXXFLAGS = -Wall -g -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D__AMD64__ #ASM_SOURCES = $(X86_SOURCES) LIB_DIR = $(TOP)/lib64 # Library/program dependencies GL_LIB_DEPS = -L/usr/X11R6/lib64 -lX11 -lXext -lm -lpthread -lexpat -ldl GLUT_LIB_DEPS = -L$(LIB_DIR) -lGLU -lGL -L/usr/X11R6/lib64 -lX11 -lXmu -lXt -lXi -lm GLW_LIB_DEPS = -L$(LIB_DIR) -lGL -L/usr/X11R6/lib64 -lXt -lXm -lX11 # Directories SRC_DIRS = mesa glu glut/glx glw DRIVER_DIRS = dri PROGRAM_DIRS = WINDOW_SYSTEM=dri # ffb & savage missing: # DRI_DIRS = dri_client gamma i810 i830 mach64 mga r128 r200 radeon sis tdfx unichrome
