Jonathan Adamczewski wrote:
> Trying to 'make linux-cell' with gallium-0.1 head, I get the following
> error :
>
> gcc -c -I../../../../../src/mesa -I../../../../../src/gallium/include
> -I../../../../../src/gallium/auxiliary
> -I../../../../../src/gallium/drivers -g -Wall -Winline -fPIC -m32
> -mabi=altivec -maltivec -I.
> -I/opt/ibm/cell-sdk/prototype/sysroot/usr/include -DGALLIUM_CELL
> cell_vertex_shader.c -o cell_vertex_shader.o
> cell_vertex_shader.c: In function 'cell_vertex_shader_queue_flush':
> cell_vertex_shader.c:67: warning: implicit declaration of function
> 'cell_update_vertex_fetch'
> cell_vertex_shader.c:73: warning: assignment makes integer from pointer
> without a cast
> cell_vertex_shader.c:126: error: 'struct <anonymous>' has no member
> named 'dest'
> cell_vertex_shader.c:58: warning: unused variable 'shader_info'
> make[5]: *** [cell_vertex_shader.o] Error 1
> make[5]: Leaving directory
> `/home/jonathan/mesa/mesa/src/gallium/drivers/cell/ppu'
>
>
> The particular structure triggering the error (struct
> draw_context.vs.queue, defined in
> ./src/gallium/auxiliary/draw/draw_private.h) indeed has no member called
> dest.
>
>
Ok, dest was renamed to vertex in commit
30479ef11004c9498c4ef09048efc56227f104cc
without a corresponding change to cell_vertex_shader.c
diff --git a/src/gallium/drivers/cell/ppu/cell_vertex_shader.c
b/src/gallium/drivers/cell/ppu/cell_vertex_shader.c
index f7ef72e..42cc47c 100644
--- a/src/gallium/drivers/cell/ppu/cell_vertex_shader.c
+++ b/src/gallium/drivers/cell/ppu/cell_vertex_shader.c
@@ -123,7 +123,7 @@ cell_vertex_shader_queue_flush(struct draw_context
*draw)
for (j = 0; j < n; j++) {
vs->elts[j] = draw->vs.queue[i + j].elt;
- vs->vOut[j] = (uintptr_t) draw->vs.queue[i + j].dest;
+ vs->vOut[j] = (uintptr_t) draw->vs.queue[i + j].vertex;
}
for (/* empty */; j < SPU_VERTS_PER_BATCH; j++) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev