Re: [Mesa3d-dev] [PATCH] Fix compile error caused by missing include dir

2010-03-19 Thread Johannes Obermayr
>Please apply this patch.
>
>Otherwise st:es has a compile error in st_es2.c!
>
>Thanks.
>Johannes
Ping

If you do not believe try compiling it on a fresh machine like OBS.

Include flow:
src/gallium/state_trackers/es/st_es2.c -> src/mesa/state_tracker/st_manager.h 
-> src/mesa/state_tracker/st_context.h -> src/mesa/main/mtypes.h -> 
src/mesa/main/glheader.h

src/mesa/main/glheader.h cannot find:

#include "GL/gl.h"
#include "GL/glext.h"
#include "GL/internal/glcore.h"

With the patch it can ...

And Mesa/Gallium should always be in a compilable state, shouldn't it?

Thanks.
Johannes

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] [PATCH] Fix compile error caused by missing include dir

2010-03-18 Thread Johannes Obermayr
Please apply this patch.

Otherwise st:es has a compile error in st_es2.c!

Thanks.
Johannes
diff --git a/src/gallium/state_trackers/es/Makefile b/src/gallium/state_trackers/es/Makefile
index e33685d..089d441 100644
--- a/src/gallium/state_trackers/es/Makefile
+++ b/src/gallium/state_trackers/es/Makefile
@@ -38,6 +38,7 @@ SYS_LIBS = -lm -pthread
 
 
 INCLUDE_DIRS = \
+	-I$(TOP)/include \
 	-I$(TOP)/src/mesa \
 	-I$(TOP)/src/gallium/include
 
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Compiler warnings when building Mesa

2010-03-14 Thread Johannes Obermayr
Hi,

here is a list with compiler warnings I have seen for a longer time.

Just for info:
libdrm: 20100313
XServer: 1.7.5
protos/macros: 20100311 

I can also provide a full log (~1.4 MiB).

Please decide whether fixing them is necessary/worth ...

Thanks.
Johannes
gcc -c -I../../include -I../../src/mesa -I../../src/gallium/include 
-I../../src/gallium/auxiliary -g -O2 -Wall -Wmissing-prototypes -std=c99 
-ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM 
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS 
-DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS 
-DHAVE_XEXTPROTO_71 shader/nvprogram.c -o shader/nvprogram.o
lex.yy.c:3320: warning: no previous prototype for 'yyget_column'
lex.yy.c:3396: warning: no previous prototype for 'yyset_column'
lex.yy.c:2795: warning: 'yyunput' defined but not usedgcc -c -I../../include 
-I../../src/mesa -I../../src/gallium/include -I../../src/gallium/auxiliary -g 
-O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden 
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 shader/nvvertparse.c 
-o shader/nvvertparse.o

lex.yy.c:2837: warning: 'input' defined but not used

-

gcc -c -I../../include -I../../src/mesa -I../../src/gallium/include 
-I../../src/gallium/auxiliary -g -O2 -Wall -Wmissing-prototypes -std=c99 
-ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM 
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS 
-DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS 
-DHAVE_XEXTPROTO_71 swrast/s_accum.c -o swrast/s_accum.o
swrast/s_aatriangle.c:277: warning: 'compute_coveragei' defined but not used

-

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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  r128_texmem.c -o 
r128_texmem.o
In file included from r128_span.c:203:
../../../../../src/mesa/drivers/dri/common/depthtmp.h: In function 
'r128WriteDepthSpan_z16':
../../../../../src/mesa/drivers/dri/common/depthtmp.h:45: warning: passing 
argument 5 of 'r128WriteDepthSpanLocked' from incompatible pointer type
r128_ioctl.h:75: note: expected 'const GLuint *' but argument is of type 'const 
GLushort *'
../../../../../src/mesa/drivers/dri/common/depthtmp.h: In function 
'r128WriteDepthPixels_z16':
../../../../../src/mesa/drivers/dri/common/depthtmp.h:146: warning: passing 
argument 5 of 'r128WriteDepthPixelsLocked' from incompatible pointer type
r128_ioctl.h:79: note: expected 'const GLuint *' but argument is of type 'const 
GLushort *'

-

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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_R600 r700_vertprog.c -o 
r700_vertprog.o
r700_assembler.c: In function 'callPreSub':
r700_assembler.c:6157: warning: assignment from incompatible pointer type
r700_assembler.c:6277: warning: assignment from incompatible pointer type

-

gcc -c -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -include 
main/mfeatures_es1.h -D__GL_EXPORTS -I. -I./glapi/glapi-es1 -I./state_tracker 
-I../state_tracker -I../../../include -I../../../src/mesa 
-I../../../src/gallium/include -I../../../src/gallium/auxiliary -o 
objs-es1/shader/nvfragparse.o ../shader/nvfragparse.c
lex.yy.c:3320: warning: no previous prototype for 'yyget_column'
lex.yy.c:3396: warning: no previous prototype for 'yyset_column'
lex.yy.c:2795: warning: 'yyunput' defined but not used
lex.yy.c:2837: warning: 'input' de

Re: [Mesa3d-dev] Compile error in xorg_crtc.c

2010-03-11 Thread Johannes Obermayr
STEVE555 wrote:
>If I leave out the xorg state tracker,it goes past fine until it comes up
>with this error I posted earlier:
>
>gmake[5]: Entering directory `/opt/mesa/src/gallium/winsys/drm/vmware/egl'
>gcc -c  -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math
>-fvisibility=hidden -fno-strict-aliasing -m32 -g  -fPIC -m32 -DUSE_X86_ASM
>-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DDEBUG
>-DHAVE_POSIX_MEMALIGN -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
>-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
>-DMAX_WIDTH=4096 -DMAX_HEIGHT=4096 -D_GNU_SOURCE -DPTHREADS -DDEBUG
>-DHAVE_POSIX_MEMALIGN -DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
>-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
>-DMAX_WIDTH=4096 -DMAX_HEIGHT=4096 dummy.c -o dummy.o
>gmake[5]: *** No rule to make target
>`../../../../../../src/gallium/winsys/xlib/libws_xlib.a', needed by
>`egl_x11_vmwgfx.so'.  Stop.
>gmake[5]: Leaving directory `/opt/mesa/src/gallium/winsys/drm/vmware/egl'
>gmake[4]: *** [default] Error 1
>gmake[4]: Leaving directory `/opt/mesa/src/gallium/winsys/drm/vmware'
>gmake[3]: *** [default] Error 1
>gmake[3]: Leaving directory `/opt/mesa/src/gallium/winsys/drm'
>gmake[2]: *** [default] Error 1
>gmake[2]: Leaving directory `/opt/mesa/src/gallium/winsys'
>gmake[1]: *** [subdirs] Error 1
>gmake[1]: Leaving directory `/opt/mesa/src'
>gmake: *** [default] Error 1
>
>I'll try and wait if the latest packages get updated for xorg,but I might be
>tempted to bit the bullet and upgrade to Rawhide.
>
>Regards,
>STEVE555

There is also this error with latest git:
gmake[5]: *** No rule to make target 
`../../../../../../src/gallium/winsys/xlib/libws_xlib.a', needed by 
`egl_x11_i915.so'.  Stop.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Compile error in xorg_crtc.c

2010-03-10 Thread Johannes Obermayr
XServer 1.7.5:

I think it is this commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a56da1005d30da60701e33b75d5f4f37096df060

Thanks.
Johannes


gcc -c -I. -I../../../../src/gallium/include 
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers 
-DHAVE_CONFIG_H -DHAVE_XEXTPROTO_71 -DHAVE_LIBKMS -I/usr/include/libkms   
-I/usr/include/pixman-1 -I/usr/include/xorg -I/usr/include/drm   
-I../../../../src/gallium/include -I../../../../src/gallium/auxiliary 
-I../../../../include -I../../../../src/mesa 
-I../../../../src/mesa/drivers/dri/common -I../../../../src/mesa/main -g -O2 
-Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden 
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM 
-DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  xorg_driver.c -o 
xorg_driver.o
xorg_crtc.c: In function 'crtc_load_cursor_argb':
xorg_crtc.c:287: error: dereferencing pointer to incomplete type
gmake[4]: *** [xorg_crtc.o] Error 1
gmake[4]: *** Waiting for unfinished jobs
gmake[4]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers/xorg'
gmake[3]: *** [subdirs] Error 1
gmake[3]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa/src'

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Compile error in radeon_texture.c

2010-03-07 Thread Johannes Obermayr
Hi,

There is a compile error in radeon_texture.c.

Thanks.
Johannes


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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 
-DHAVE_LIBDRM_RADEON=1 -I/usr/include/drm   -DRADEON_R200 radeon_texture.c -o 
radeon_texture.o
In file included from radeon_mipmap_tree.c:39:
radeon_tile.h:1: error: expected identifier or '(' before '.' token
radeon_mipmap_tree.c: In function 'get_texture_image_size':
radeon_mipmap_tree.c:90: warning: implicit declaration of function 
'get_tile_size'
radeon_mipmap_tree.c: In function 'get_texture_image_row_stride':
radeon_mipmap_tree.c:102: warning: implicit declaration of function 
'get_aligned_compressed_row_stride'
gmake[6]: *** [radeon_mipmap_tree.o] Error 1
gmake[6]: *** Waiting for unfinished jobs
gmake[6]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/r200'
gmake[5]: *** [lib] Error 2
gmake[5]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/r200'
gmake[4]: *** [subdirs] Error 1
gmake[4]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers'
gmake[2]: *** [driver_subdirs] Error 2
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa/src'
make: *** [default] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.OTEkCI (%build)

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Build failure in glapi/glapi.c

2010-03-01 Thread Johannes Obermayr
Latest mesa does not compile.

Thanks.
Johannes


gcc -c -I../../include -I../../src/mesa -I../../src/gallium/include 
-I../../src/gallium/auxiliary -g -O2 -Wall -Wmissing-prototypes -std=c99 
-ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM 
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS 
-DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS 
-DHAVE_XEXTPROTO_71 state_tracker/st_texture.c -o state_tracker/st_texture.o
gcc -c -I../../include -I../../src/mesa -I../../src/gallium/include 
-I../../src/gallium/auxiliary -g -O2 -Wall -Wmissing-prototypes -std=c99 
-ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM 
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS 
-DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS 
-DHAVE_XEXTPROTO_71 glapi/glapi.c -o glapi/glapi.o
glapi/glapi.c: In function '_glapi_check_multithread':
glapi/glapi.c:178: error: expected expression before 'void'
glapi/glapi.c:178: error: too many arguments to function 
'_glapi_init_multithread'
glapi/glapi.c:180: error: expected ';' before 'knownID'
gmake[2]: *** [glapi/glapi.o] Error 1
gmake[2]: *** Waiting for unfinished jobs
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa/src'
make: *** [default] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.IlpHA4 (%build)

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] [PATCH] dri/nouveau: Adjust to latest libdrm

2010-02-16 Thread Johannes Obermayr
Mesa compiles now in dri/nouveau (without compiler warnings).

1. Do the same as Ben Skeggs did with commit "nouveau: fix for latest libdrm" 
on Gallium
2. "chan->pushbuf->remaining" is now "chan->end - chan->cur" (see libdrm commit 
"nouveau: interface changes for 0.0.16 DRM")
3. Compiled successfully for openSUSE 11.2 and Factory (i586 and x86_64)
4. Tested with my GeForce2 GTS (NV15)
4.1 glxinfo tells that it is accelerated
4.2 glxinfo ~1000 FPS (without screen corruption)
4.3 kubrick has screen corruption (gray cubies and horizontal lines) and makes 
system so slow that I must press reset button. I do not know whether it was 
before because my main card is a GeForce 5600FX (NV31) and I installed my NV15 
only a few minutes for testing this patch...

Please commit it if it is proper...
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c b/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
index 664632f..fc5f77b 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
@@ -32,7 +32,6 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 		   uint32_t flags)
 {
 	struct nouveau_channel *chan = context_chan(ctx);
-	struct nouveau_pushbuf *push = chan->pushbuf;
 	uint32_t packet;

 	if (m->gr->bound == NOUVEAU_GROBJ_UNBOUND)
@@ -41,11 +40,10 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 	if (MARK_RING(chan, 2, 2))
 		return GL_FALSE;

-	push->remaining -= 2;
 	packet = (m->gr->subc << 13) | (1 << 18) | m->mthd;

 	if (flags) {
-		if (nouveau_pushbuf_emit_reloc(chan, push->cur++, m->bo,
+		if (nouveau_pushbuf_emit_reloc(chan, chan->cur++, m->bo,
 	   packet, 0, flags |
 	   (m->flags & (NOUVEAU_BO_VRAM |
 			NOUVEAU_BO_GART |
@@ -53,10 +51,10 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 	   0, 0))
 			goto fail;
 	} else {
-		*(push->cur++) = packet;
+		*(chan->cur++) = packet;
 	}

-	if (nouveau_pushbuf_emit_reloc(chan, push->cur++, m->bo, m->data,
+	if (nouveau_pushbuf_emit_reloc(chan, chan->cur++, m->bo, m->data,
    m->data2, flags | m->flags,
    m->vor, m->tor))
 		goto fail;
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c b/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
index 8fa922f..9abaa90 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
@@ -210,7 +210,7 @@ swtnl_flush_vertices(GLcontext *ctx)
 	swtnl_bind_vertices(ctx);

 	while (count) {
-		push = get_max_vertices(ctx, NULL, chan->pushbuf->remaining);
+		push = get_max_vertices(ctx, NULL, chan->end - chan->cur);
 		push = MIN2(push / 12 * 12, count);
 		count -= push;

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
index ba1192a..35a7c43 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
@@ -319,7 +319,7 @@ vbo_draw_vbo(GLcontext *ctx, const struct gl_client_array **arrays,
 	  min_index, max_index);
 		}

-		if (count > get_max_vertices(ctx, ib, chan->pushbuf->remaining))
+		if (count > get_max_vertices(ctx, ib, chan->end - chan->cur))
 			WAIT_RING(chan, PUSHBUF_DWORDS);

 		BATCH_BEGIN(nvgl_primitive(prims[i].mode));
@@ -355,7 +355,7 @@ vbo_draw_imm(GLcontext *ctx, const struct gl_client_array **arrays,
 			end = start + prims[i].count;

 		if (prims[i].count > get_max_vertices(ctx, ib,
-		  chan->pushbuf->remaining))
+		  chan->end - chan->cur))
 			WAIT_RING(chan, PUSHBUF_DWORDS);

 		BATCH_BEGIN(nvgl_primitive(prims[i].mode));
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


Re: [Mesa3d-dev] [Nouveau] Build failure in Mesa

2010-02-16 Thread Johannes Obermayr
Am Dienstag, 16. Februar 2010 11:13:06 schrieb Maarten Maathuis:
> On Tue, Feb 16, 2010 at 11:00 AM, Johannes Obermayr
>  wrote:
> > Am Dienstag, 16. Februar 2010 09:53:58 schrieb Ben Skeggs:
> >> On Tue, 2010-02-16 at 09:25 +0100, Johannes Obermayr wrote:
> >> > Hi,
> >> >
> >> > Ben Skeggs latest changes in Mesa cause a build failure (libdrm is 
> >> > latest git ...).
> >> Rebuild latest libdrm from git, you'll also need an updated kernel
> >> module.
> >>
> >> Ben.
> > 
> >
> > What does it mean? Do I need kernel-source for compiling Mesa now? Must 
> > kernel modules be installed at build time?
> 
> He meant, you need a new libdrm (and the latest requires a new kernel
> module to actually run). In reality that part of mesa needs to be
> updated to the latest libdrm api, because you already have the latest
> libdrm.
> 
Attached patch fixes the build problem on current git with this output:
(looked what Ben Skeggs did with commit "nouveau: fix for latest libdrm")


In file included from nouveau_render_t.c:289,   
  
 from nv10_render.c:201:
  
nouveau_vbo_t.c: In function 'vbo_draw_vbo':
  
nouveau_vbo_t.c:322: warning: passing argument 3 of 'get_max_vertices' makes 
integer from pointer without a cast  
nouveau_render_t.c:256: note: expected 'unsigned int' but argument is of type 
'struct nouveau_channel *'  
nouveau_vbo_t.c: In function 'vbo_draw_imm':
  
nouveau_vbo_t.c:358: warning: passing argument 3 of 'get_max_vertices' makes 
integer from pointer without a cast  
nouveau_render_t.c:256: note: expected 'unsigned int' but argument is of type 
'struct nouveau_channel *'  
In file included from nouveau_render_t.c:290,   
  
 from nv10_render.c:201:
  
nouveau_swtnl_t.c: In function 'swtnl_flush_vertices':  
  
nouveau_swtnl_t.c:213: warning: passing argument 3 of 'get_max_vertices' makes 
integer from pointer without a cast
nouveau_render_t.c:256: note: expected 'unsigned int' but argument is of type 
'struct nouveau_channel *'

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c b/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
index 664632f..fc5f77b 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_bo_state.c
@@ -32,7 +32,6 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 		   uint32_t flags)
 {
 	struct nouveau_channel *chan = context_chan(ctx);
-	struct nouveau_pushbuf *push = chan->pushbuf;
 	uint32_t packet;
 
 	if (m->gr->bound == NOUVEAU_GROBJ_UNBOUND)
@@ -41,11 +40,10 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 	if (MARK_RING(chan, 2, 2))
 		return GL_FALSE;
 
-	push->remaining -= 2;
 	packet = (m->gr->subc << 13) | (1 << 18) | m->mthd;
 
 	if (flags) {
-		if (nouveau_pushbuf_emit_reloc(chan, push->cur++, m->bo,
+		if (nouveau_pushbuf_emit_reloc(chan, chan->cur++, m->bo,
 	   packet, 0, flags |
 	   (m->flags & (NOUVEAU_BO_VRAM |
 			NOUVEAU_BO_GART |
@@ -53,10 +51,10 @@ nouveau_bo_marker_emit(GLcontext *ctx, struct nouveau_bo_marker *m,
 	   0, 0))
 			goto fail;
 	} else {
-		*(push->cur++) = packet;
+		*(chan->cur++) = packet;
 	}
 
-	if (nouveau_pushbuf_emit_reloc(chan, push->cur++, m->bo, m->data,
+	if (nouveau_pushbuf_emit_reloc(chan, chan->cur++, m->bo, m->data,
    m->data2, flags | m->flags,
    m->vor, m->tor))
 		goto fail;
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c b/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
index 8fa922f..9abaa90 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_swtnl_t.c
@@ -210,7 +210,7 @@ swtnl_flush_vertices(GLcontext *ctx)
 	swtnl_bind_vertices(ctx);
 
 	while (count) {
-		push = get_max_vertices(ctx, NULL, chan->pushbuf->remaining);
+		push = get_max_vertices(ctx, NULL, chan);
 		push = MIN2(push / 12 * 12, count);
 		count -= push;
 
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c b/src/mes

Re: [Mesa3d-dev] Build failure in Mesa

2010-02-16 Thread Johannes Obermayr
Am Dienstag, 16. Februar 2010 09:53:58 schrieb Ben Skeggs:
> On Tue, 2010-02-16 at 09:25 +0100, Johannes Obermayr wrote:
> > Hi,
> > 
> > Ben Skeggs latest changes in Mesa cause a build failure (libdrm is latest 
> > git ...).
> Rebuild latest libdrm from git, you'll also need an updated kernel
> module.
> 
> Ben.


What does it mean? Do I need kernel-source for compiling Mesa now? Must kernel 
modules be installed at build time?

I use a script:
1. git pull -> libdrm Mesa nouveau/linux-2.6 nouveau/xf86-video-nouveau and all 
other xf86-video-*
2. git archive *.tar.bz2 (and mesa.diff) in specific sources for packages
3. apply current date by me (I do not know how to do it automatically ...)
4. upload sources to OBS
5. OBS builds the packages in dependency order ...

The same build failure is on openSUSE 11.2 and Factory for i586 and x86_64. I 
think 4 (re)builds should show that it does not build at all ...

Here is a full build log: http://www.mediafire.com/?n0mjimjtmlq
(xorg packages are only named 7.4 but they are already 7.5 or newer ...)

libdrm:
author  Ben Skeggs  2010-02-16 05:42:00 (GMT)
committer   Ben Skeggs  2010-02-16 05:42:00 (GMT)
commit  88e8a8bbaf026aa10225880001ab7ca1c392168a

Mesa:
author  Ben Skeggs  2010-02-16 05:43:51 (GMT)
committer   Ben Skeggs  2010-02-16 05:57:59 (GMT)
commit  828f545274a6da9b5d05aa23ae31959b121c38a2

Thanks again.
Johannes

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Build failure in Mesa

2010-02-16 Thread Johannes Obermayr
Hi,

Ben Skeggs latest changes in Mesa cause a build failure (libdrm is latest git 
...).

Thanks.
Johannes

gmake[3]: Entering directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers'
gmake[4]: Entering directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri'
sed -e 's,@INSTALL_DIR@,/usr,' -e 's,@INSTALL_LIB_DIR@,/usr/lib,' -e 
's,@INSTALL_INC_DIR@,/usr/include,' -e 's,@VERSION@,7.8.0,' -e 
's,@DRI_DRIVER_DIR@,/usr/lib/dri,' -e 's,@DRI_PC_REQ_PRIV@,libdrm >= 2.4.15,' 
dri.pc.in > dri.pc
gmake[5]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/nouveau'
running /usr/bin/makedepend
gmake[5]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/nouveau'
gmake[5]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/nouveau'
gmake[6]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/nouveau'
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/utils.c -o ../common/utils.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/vblank.c -o ../common/vblank.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/dri_util.c -o ../common/dri_util.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/xmlconfig.c -o ../common/xmlconfig.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/texmem.c -o ../common/texmem.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/drm 
-I/usr/include/nouveau../common/drirenderbuffer.c -o 
../common/drirenderbuffer.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-alia

[Mesa3d-dev] /src/mesa/drivers/dri/mach64 does not compile

2010-02-10 Thread Johannes Obermayr
Please CC me...

author  Corbin Simpson   2010-02-10 09:39:21 
(GMT)
committer   Corbin Simpson   2010-02-10 
20:35:39 (GMT)
commit  412ffb7a3ab8c0174aa921a4a10af3eaa03648da


gmake[6]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/i965'
gmake[5]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/i965'
gmake[5]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
running /usr/bin/makedepend
gmake[5]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
gmake[5]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
gmake[6]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  mach64_context.c -o 
mach64_context.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  mach64_ioctl.c -o 
mach64_ioctl.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  mach64_screen.c -o 
mach64_screen.o
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-g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71  mach64_span.c -o 
mach64_span.o
mach64_screen.c: In function 'mach64FillInModes':
mach64_screen.c:122: error: 'TRUE' undeclared (first use in this function)
mach64_screen.c:122: error: (Each undeclared identifier is reported only once
mach64_screen.c:122: error: for each function it appears in.)
gmake[6]: *** [mach64_screen.o] Error 1
gmake[6]: *** Waiting for unfinished jobs
gmake[6]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
gmake[5]: *** [lib] Error 2
gmake[5]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri/mach64'
gmake[4]: *** [subdirs] Error 1
gmake[4]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers/dri'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa/drivers'
gmake[2]: *** [driver_subdirs] Error 2
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/mesa'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa/src'
make: *** [default] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.c6ZFty (%build)

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


Re: [Mesa3d-dev] Latest Mesa (Gallium st:dri) does not compile

2010-02-08 Thread Johannes Obermayr
Am Montag, 8. Februar 2010 20:46:26 schrieb Keith Whithwell:
> OK, hopefully fixed with latest push. 
> 
> Keith
> 


New error on OpenSUSE Build Service with your commit:

... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)

I: A function overflows or underflows an array access. This could be a real 
error,
   but occasionaly this condition is also misdetected due to loop unrolling or 
strange pointer
   handling. So this is warning only, please review.
W: Mesa arraysubscript brw_vs_emit.c:1153

I: File is compiled without RPM_OPT_FLAGS
W: Mesa no-rpm-opt-flags : 

I: Program is using uninitialized variables.
   Note the difference between "is used" and "may be used"
W: Mesa uninitialized-variable svgadump/svga_shader_dump.c:348

I: Program returns random data in a function
E: Mesa no-return-in-nonvoid-function radeon_drm.c:136
mount: / is busy
System halted.

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev


[Mesa3d-dev] Latest Mesa (Gallium st:dri) does not compile

2010-02-08 Thread Johannes Obermayr
(Please CC me - I am only subscribed for posting ...)

Compiled commit:
author  Keith Whitwell   2010-02-08 17:15:47 (GMT)
committer   Keith Whitwell   2010-02-08 17:17:59 
(GMT)
commit  0b99303d1c6244094c24844f86f4e7677ee69f18


I think it is broken by this commit:
author  Keith Whitwell   2010-02-08 12:55:59 (GMT)
committer   Keith Whitwell   2010-02-08 13:05:36 
(GMT)
commit  7f41f5447c8f9113c8956901e1c5fff6081ecd94


As every time: I can provide a full log ...


gmake[4]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/drivers/nv50'
gmake[3]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/gallium/drivers'
gmake[3]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers'
gmake[4]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers/dri'
rm -f depend
touch depend
/usr/bin/makedepend -fdepend -I/usr/lib64/gcc/x86_64-suse-linux/4.4/include 
-I/usr/lib64/gcc/x86_64-suse-linux/4.4/include-fixed -I. 
-I../../../../src/gallium/include -I../../../../src/gallium/auxiliary 
-I../../../../src/gallium/drivers -I/src/gallium/include 
-I/src/gallium/auxiliary -I/src/gallium/drivers -I../../../../include 
-I../../../../src/mesa -I../../../../src/mesa/drivers/dri/common 
-I../../../../src/mesa/main -I/usr/include/drm   dri_context.c dri_screen.c 
dri_drawable.c dri_extensions.c   2> /dev/null
gmake[4]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers/dri'
gmake[4]: Entering directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers/dri'
gcc -c -I. -I../../../../src/gallium/include 
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers 
-I/src/gallium/include -I/src/gallium/auxiliary -I/src/gallium/drivers 
-I../../../../include -I../../../../src/mesa 
-I../../../../src/mesa/drivers/dri/common -I../../../../src/mesa/main 
-I/usr/include/drm   -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN 
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING 
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -g -O2 -Wall 
-Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden 
-fno-strict-aliasing  -fPIC  -DUSE_X86_64_ASM -D_GNU_SOURCE -DPTHREADS 
-DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER 
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS 
-DHAVE_XEXTPROTO_71  dri_context.c -o dri_context.o
dri_context.c: In function 'dri_create_context':
dri_context.c:72: error: 'struct pipe_screen' has no member named 
'create_context'
gmake[4]: *** [dri_context.o] Error 1
gmake[4]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers/dri'
gmake[3]: *** [subdirs] Error 1
gmake[3]: Leaving directory 
`/usr/src/packages/BUILD/Mesa/src/gallium/state_trackers'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa/src'
make: *** [default] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.ggUmZc (%build)

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev