Ejemplo n.º 1
0
void PACKSPU_APIENTRY packspu_SemaphoreVCR( GLuint name )
{
	GET_THREAD(thread);
	if (pack_spu.swap)
	{
		crPackSemaphoreVCRSWAP( name );
	}
	else
	{
		crPackSemaphoreVCR( name );
	}
	packspuFlush( (void *) thread );
}
Ejemplo n.º 2
0
/**
 * Increments the named semaphore.  This is the <em>signal</em> operation.
 * \param name
 */
void TILESORTSPU_APIENTRY tilesortspu_SemaphoreVCR(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_SemaphoreVCR called during DL compilation");
	    return;
	}
	tilesortspuFlush( thread );
	if (tilesort_spu.swap)
	{
		crPackSemaphoreVCRSWAP(name);
	}
	else
	{
		crPackSemaphoreVCR(name);
	}
	tilesortspuBroadcastGeom(0);
	tilesortspuShipBuffers();
}