Subversion Repositories ps3ware

Compare Revisions

Ignore whitespace Rev 196 → Rev 197

/trunk/libps3rsx/src/fifo/utils.c
83,7 → 83,15
BEGIN_RING(Nv3D, NV40TCL_STENCIL_BACK_ENABLE, 1);
OUT_RING (0);
BEGIN_RING(Nv3D, NV40TCL_ALPHA_TEST_ENABLE, 1);
OUT_RING (0);
OUT_RING (1);
BEGIN_RING(Nv3D, NV40TCL_ALPHA_TEST_FUNC, 1);
OUT_RING (NV40TCL_ALPHA_TEST_FUNC_GREATER);
BEGIN_RING(Nv3D, NV40TCL_ALPHA_TEST_REF, 1);
OUT_RING (0x128);
BEGIN_RING(Nv3D, NV40TCL_DEPTH_WRITE_ENABLE, 1);
OUT_RING (1);
BEGIN_RING(Nv3D, NV40TCL_DEPTH_TEST_ENABLE, 1);
293,6 → 301,14
return hash;
}
 
int sync_gpu(struct gpu *gpu)
{
int val;
ioctl(gpu->fb_fd, FBIO_WAITFORVSYNC, &val);
return val;
}
 
 
int gpu_init(struct gpu *gpu)
{
struct ps3rsx_ioctl_context_info info;
/trunk/libps3rsx/src/fifo/utils.h
101,6 → 101,7
 
void fifo_push(struct gpu *gpu, int len);
void fifo_wait(struct gpu *gpu);
int sync_gpu(struct gpu *gpu );
uint32_t hash_handle(int channel, uint32_t handle);
uint32_t endian( uint32_t v );
uint32_t endian_fp( uint32_t v );