From: Arthur M. <art...@in...> - 2009-10-11 13:19:11
|
Cooper Yuan wrote, on 11/10/09 17:57: > Try to pull the latest mesa/drm. > Cooper > > On Sat, Oct 10, 2009 at 7:09 PM, Arthur Marsh <art...@in... >> wrote: > >> Hi, I did an apt-get source mesa and obtained the 7.6 sources, then >> added r600 into debian/rules and attempted to build, but it failed at >> this stage: >> >> gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver >> -I../../../../../include -I../../../../../src/mesa >> -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri >> -I/usr/include/drm -Wall -g -O2 -Wall -Wmissing-prototypes -std=c99 >> -ffast-math -fno-strict-aliasing -fPIC -DUSE_X86_64_ASM -D_GNU_SOURCE >> -DPTHREADS -DHAVE_POSIX_MEMALIGN -DGLX_USE_TLS -DPTHREADS >> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING >> -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DCOMPILE_R600 -DR200_MERGED=0 >> -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R600 r600_cmdbuf.c -o r600_cmdbuf.o >> r600_cmdbuf.c: In function ‘r600_cs_emit’: >> r600_cmdbuf.c:331: error: storage size of ‘cs_cmd’ isn’t known >> r600_cmdbuf.c:332: error: array type has incomplete element type >> r600_cmdbuf.c:353: error: ‘RADEON_CHUNK_ID_IB’ undeclared (first use in >> this function) >> r600_cmdbuf.c:353: error: (Each undeclared identifier is reported only once >> r600_cmdbuf.c:353: error: for each function it appears in.) >> r600_cmdbuf.c:358: error: ‘RADEON_CHUNK_ID_RELOCS’ undeclared (first use >> in this function) >> r600_cmdbuf.c:373: error: ‘DRM_RADEON_CS’ undeclared (first use in this >> function) >> r600_cmdbuf.c:332: warning: unused variable ‘cs_chunk’ >> r600_cmdbuf.c:331: warning: unused variable ‘cs_cmd’ Thanks, it turns out that I had missed the second step below: How to build drm stuff git clone git://anongit.freedesktop.org/~agd5f/drm cd drm git checkout -t -b r6xx-r7xx-3d origin/r6xx-r7xx-3d ./autogen.sh --prefix=$(pkg-config --variable=prefix libdrm) --libdir=$(pkg-config --variable=libdir libdrm) --includedir=$(pkg-config --variable=includedir libdrm) make sudo make install cd linux-core make sudo make install This required me to re-build my current kernel to provide all that the build process was looking for. After these steps and installing the new mesa I have a fair degree of success. glxgears with radeon driver reports just under 1000 fps and with 1.3.0 radeonhd driver reports just over 1000 fps. Now I can get 40 fps playing etracer in 1024*768 on a dual core athlon 64 on a motherboard with on-board radeon 3200hd, but the keyboard response during play or something isn't quite right as I'm getting very low speeds from the racing tux (ie not enough for tux to get airborne much). |