#include <stdio.h>
-#include <assert.h>
#include <libmisc.h>
#include <spu_mfcio.h>
src += offset * bytesPerTile;
- assert(tx < fb->width_tiles);
- assert(ty < fb->height_tiles);
+ ASSERT(tx < fb->width_tiles);
+ ASSERT(ty < fb->height_tiles);
ASSERT_ALIGN16(tile);
/*
printf("get_tile: dest: %p src: 0x%x size: %d\n",
dst += offset * bytesPerTile;
- assert(tx < fb->width_tiles);
- assert(ty < fb->height_tiles);
+ ASSERT(tx < fb->width_tiles);
+ ASSERT(ty < fb->height_tiles);
ASSERT_ALIGN16(tile);
/*
printf("put_tile: src: %p dst: 0x%x size: %d\n",
const uint tx = txmin + i % box_width_tiles;
const uint ty = tymin + i / box_width_tiles;
- assert(tx < fb.width_tiles);
- assert(ty < fb.height_tiles);
+ ASSERT(tx < fb.width_tiles);
+ ASSERT(ty < fb.height_tiles);
/* Start fetching color/z tiles. We'll wait for completion when
* we need read/write to them later in triangle rasterization.
get_tile(&fb, tx, ty, (uint *) ctile, TAG_READ_TILE_COLOR, 0);
}
- assert(render->prim_type == PIPE_PRIM_TRIANGLES);
+ ASSERT(render->prim_type == PIPE_PRIM_TRIANGLES);
/* loop over tris */
for (j = 0; j < render->num_verts; j += 3) {
const uint tx = txmin + i % box_width_tiles;
const uint ty = tymin + i / box_width_tiles;
- assert(tx < fb.width_tiles);
- assert(ty < fb.height_tiles);
+ ASSERT(tx < fb.width_tiles);
+ ASSERT(ty < fb.height_tiles);
/* Start fetching color/z tiles. We'll wait for completion when
* we need read/write to them later in triangle rasterization.
get_tile(&fb, tx, ty, (uint *) ctile, TAG_READ_TILE_COLOR, 0);
}
- assert(render->prim_type == PIPE_PRIM_TRIANGLES);
+ ASSERT(render->prim_type == PIPE_PRIM_TRIANGLES);
/* loop over tris */
for (j = 0; j < render->num_indexes; j += 3) {
if (Debug)
printf("SPU %u: Enter main loop\n", init.id);
- assert((sizeof(struct cell_command) & 0xf) == 0);
+ ASSERT((sizeof(struct cell_command) & 0xf) == 0);
ASSERT_ALIGN16(&cmd);
while (!exitFlag) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
return (b << 24) | (g << 16) | (r << 8) | a;
default:
- assert(0);
+ ASSERT(0);
return 0;
}
}
float a = setup->ebot.dy * majda - botda * setup->emaj.dy;
float b = setup->emaj.dx * botda - majda * setup->ebot.dx;
- assert(slot < PIPE_MAX_SHADER_INPUTS);
+ ASSERT(slot < PIPE_MAX_SHADER_INPUTS);
setup->coef[slot].dadx[i] = a * setup->oneoverarea;
setup->coef[slot].dady[i] = b * setup->oneoverarea;
int y, start_y, finish_y;
int sy = (int)eleft->sy;
- assert((int)eleft->sy == (int) eright->sy);
+ ASSERT((int)eleft->sy == (int) eright->sy);
/* clip top/bottom */
start_y = sy;