cell: Trivial compiler warning clean-ups.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user