Пример #1
0
void PACKSPU_APIENTRY packspu_SemaphoreCreateCR( GLuint name, GLuint count )
{
	GET_THREAD(thread);
	if (pack_spu.swap)
	{
		crPackSemaphoreCreateCRSWAP( name, count );
	}
	else
	{
		crPackSemaphoreCreateCR( name, count );
	}
	packspuFlush( (void *) thread );
}
Пример #2
0
/**
 * Creates a semaphore with the given name and value.  Value indicates
 * the initial semaphore value.
 * \param name  the semaphore ID
 * \param count  the initial semaphore count
 */
void TILESORTSPU_APIENTRY tilesortspu_SemaphoreCreateCR(GLuint name, GLuint count)
{
	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_SemaphoreCreateCR called during DL compilation");
	    return;
	}
	tilesortspuFlush( thread );
	if (tilesort_spu.swap)
	{
		crPackSemaphoreCreateCRSWAP(name,count);
	}
	else
	{
		crPackSemaphoreCreateCR(name,count);
	}
	tilesortspuBroadcastGeom(0);
	tilesortspuShipBuffers();
}