void PACKSPU_APIENTRY packspu_SemaphorePCR( GLuint name ) { GET_THREAD(thread); if (pack_spu.swap) { crPackSemaphorePCRSWAP( name ); } else { crPackSemaphorePCR( name ); } packspuFlush( (void *) thread ); }
/** * Decrements the named semaphore. This is the <em>wait</em> operation. * \param name */ void TILESORTSPU_APIENTRY tilesortspu_SemaphorePCR(GLuint name) { GET_THREAD(thread); GLenum dlMode = thread->currentContext->displayListMode; /* check if we're compiling a display list, if so, error! */ if (dlMode != GL_FALSE) { crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "tilesortspu_SemaphorePCR called during DL compilation"); return; } tilesortspuFlush( thread ); if (tilesort_spu.swap) { crPackSemaphorePCRSWAP(name); } else { crPackSemaphorePCR(name); } tilesortspuBroadcastGeom(0); tilesortspuShipBuffers(); }