packspu_misc.c revision 4001d4f95345a4d3dd2a975a325d389d2300d010
2521N/A * See the file LICENSE.txt for information on redistributing this software.
2892N/A#include "cr_packfunctions.h"
2521N/A#include "packspu_proto.h"
2892N/Avoid PACKSPU_APIENTRY packspu_ChromiumParametervCR(GLenum target, GLenum type, GLsizei count, const GLvoid *values)
2521N/A case GL_GATHER_PACK_CR:
2521N/A GLint writeback = CRPACKSPU_IS_WDDM_CRHGSMI() ? 1 : pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network;
2521N/A if (packspuSyncOnFlushes())
2521N/A if (packspuSyncOnFlushes())
2521N/A for (i=0; i<MAX_THREADS; ++i)
2521N/A if (pack_spu.thread[i].netServer.conn->u32ClientID == thread->netServer.conn->u32InjectClientID)
2521N/A so there's nothing to sync with and we should just pass commands through our own connection.
2892N/A if (CRPACKSPU_IS_WDDM_CRHGSMI())
2925N/AGLint PACKSPU_APIENTRY packspu_VBoxWindowCreate( GLint con, const char *dpyName, GLint visBits )
2521N/A int writeback = CRPACKSPU_IS_WDDM_CRHGSMI() ? 1 : pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network;
3998N/A if (CRPACKSPU_IS_WDDM_CRHGSMI())
3998N/A if (CRPACKSPU_IS_WDDM_CRHGSMI())
2521N/A if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
2521N/A crError( "packspu_AreTexturesResident doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
2892N/A if (!residences[i]) {
2892N/A return return_val;
2892N/A if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
2892N/A crError( "packspu_AreProgramsResidentNV doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
2521N/A if (!residences[i]) {
2521N/A return return_val;
2892N/A#ifdef CHROMIUM_THREADSAFE
2892N/A for (i=0; i<MAX_THREADS; ++i)
2892N/A if (!CRPACKSPU_IS_WDDM_CRHGSMI())
2892N/A if (CRPACKSPU_IS_WDDM_CRHGSMI())
3998N/A if (CRPACKSPU_IS_WDDM_CRHGSMI())
CRASSERT(thread && thread->netServer.conn && thread->netServer.conn->type==CR_VBOXHGCM && thread->bInjectThread);
for (i=0; i<MAX_THREADS; ++i)
if (CRPACKSPU_IS_WDDM_CRHGSMI())
if (thread)
for (i=0; i<MAX_THREADS; ++i)
for (i=0; i<MAX_THREADS; ++i)
for (i=0; i<CR_MAX_CONTEXTS; ++i)
#ifdef WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
(void) lpvReserved;
switch (fdwReason)
case DLL_PROCESS_ATTACH:
case DLL_PROCESS_DETACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
return TRUE;
(void) id;