cell: Trivial compiler warning clean-ups.
authorIan Romanick <idr@us.ibm.com>
Sat, 23 Feb 2008 00:27:39 +0000 (16:27 -0800)
committerIan Romanick <idr@us.ibm.com>
Tue, 26 Feb 2008 00:18:08 +0000 (16:18 -0800)
src/gallium/drivers/cell/ppu/cell_draw_arrays.c
src/gallium/drivers/cell/ppu/cell_vertex_shader.c
src/gallium/drivers/cell/spu/spu_exec.c
src/gallium/drivers/cell/spu/spu_main.c

index cbd387f0142ff9da3139ece647f171f089009ce5..c839fb4d12da6028c0d3e24da05d7cd88dd1a0b3 100644 (file)
@@ -38,6 +38,7 @@
 #include "cell_context.h"
 #include "cell_draw_arrays.h"
 #include "cell_state.h"
+#include "cell_flush.h"
 
 #include "draw/draw_context.h"
 
index 42cc47cbfeae9bebc5aa1e6bc67937bf193d0dc6..17141924be83a8c692ccdf05179d511d6c3b9055 100644 (file)
@@ -55,7 +55,6 @@ cell_vertex_shader_queue_flush(struct draw_context *draw)
    struct cell_command_vs *const vs = &cell_global.command[0].vs;
    uint64_t *batch;
    struct cell_array_info *array_info;
-   struct cell_shader_info *shader_info;
    unsigned i, j;
    struct cell_attribute_fetch_code *cf;
 
index fff0114a23621f512b503114177ba7b4b9918e21..1560c0f157473819ec0d89b53c6d8fa97f6b8f96 100644 (file)
@@ -149,6 +149,7 @@ spu_exec_machine_init(struct spu_exec_machine *mach,
    const qword zero = si_il(0);
    const qword not_zero = si_il(~0);
 
+   (void) numSamplers;
    mach->Samplers = samplers;
    mach->Processor = processor;
    mach->Addrs = &mach->Temps[TGSI_EXEC_NUM_TEMPS];
@@ -657,9 +658,10 @@ fetch_texel( struct spu_sampler *sampler,
    qword rgba[4];
    qword out[4];
 
-   sampler->get_samples(sampler, s->f, t->f, p->f, lodbias, (float *) rgba);
+   sampler->get_samples(sampler, s->f, t->f, p->f, lodbias, 
+                       (float (*)[4]) rgba);
 
-   _transpose_matrix4x4(out, rgba);
+   _transpose_matrix4x4((vec_float4 *) out, (vec_float4 *) rgba);
    r->q = out[0];
    g->q = out[1];
    b->q = out[2];
index 1136dba62d5cf38b21334e4ae27e25b5219f53f8..cc4bafdb3ac747a70ad2bb00b8514df22c4e5aef 100644 (file)
@@ -38,6 +38,7 @@
 #include "spu_tile.h"
 //#include "spu_test.h"
 #include "spu_vertex_shader.h"
+#include "spu_dcache.h"
 #include "cell/common.h"
 #include "pipe/p_defines.h"
 
@@ -434,7 +435,7 @@ cmd_batch(uint opcode)
          pos += (1 + ROUNDUP8(sizeof(struct pipe_viewport_state)) / 8);
          break;
       case CELL_CMD_STATE_UNIFORMS:
-         draw.constants = (float (*)[4]) (uintptr_t) buffer[pos + 1];
+         draw.constants = (const float (*)[4]) (uintptr_t) buffer[pos + 1];
          pos += 2;
          break;
       case CELL_CMD_STATE_VS_ARRAY_INFO:
@@ -583,7 +584,7 @@ main(main_param_t speid, main_param_t argp)
    one_time_init();
 
    if (Debug)
-      printf("SPU: main() speid=%lu\n", speid);
+      printf("SPU: main() speid=%lu\n", (unsigned long) speid);
 
    mfc_get(&spu.init,  /* dest */
            (unsigned int) argp, /* src */