/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "cr_mem.h"
#include "cr_spu.h"
#include "cr_glstate.h"
#include "packspu.h"
#include "cr_packfunctions.h"
#include <stdio.h>
extern SPUNamedFunctionTable _cr_pack_table[];
NULL, /* CHILD COPY */
NULL, /* DATA */
_cr_pack_table /* THE ACTUAL FUNCTIONS */
};
#ifdef CHROMIUM_THREADSAFE
#endif
static SPUFunctions *
unsigned int context_id,
unsigned int num_contexts )
{
(void) context_id;
(void) num_contexts;
(void) child;
(void) self;
#if defined(CHROMIUM_THREADSAFE) && !defined(WINDOWS)
#endif
#if defined(WINDOWS) && defined(VBOX_WITH_WDDM)
#endif
#ifdef VBOX_WITH_CRPACKSPU_DUMPER
#endif
if (!CRPACKSPU_IS_WDDM_CRHGSMI())
{
/* This connects to the server, sets up the packer, etc. */
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
#endif
);
if (!thread) {
return NULL;
}
pack_spu.idxThreadInUse = 0;
}
crStateInit();
return &pack_functions;
}
static void
{
}
static int
packSPUCleanup(void)
{
int i;
#ifdef CHROMIUM_THREADSAFE
#endif
for (i=0; i<MAX_THREADS; ++i)
{
{
}
}
#ifdef CHROMIUM_THREADSAFE
# ifndef WINDOWS
# endif
#endif
return 1;
}
extern SPUOptions packSPUOptions[];
{
*name = "pack";
*init = packSPUInit;
return 1;
}