packspu_misc.c revision 841e02f1d0f8b252225b4527bfa1ca302addc0a1
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Copyright (c) 2001, Stanford University
45e9809aff7304721fddb95654901b32195c9c7avboxsync * All rights reserved
45e9809aff7304721fddb95654901b32195c9c7avboxsync * See the file LICENSE.txt for information on redistributing this software.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid PACKSPU_APIENTRY packspu_ChromiumParametervCR(GLenum target, GLenum type, GLsizei count, const GLvoid *values)
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* flush the current pack buffer */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* the connection is thread->server.conn */
45e9809aff7304721fddb95654901b32195c9c7avboxsync crNetSend(thread->netServer.conn, NULL, &msg, len);
45e9809aff7304721fddb95654901b32195c9c7avboxsync crPackChromiumParametervCRSWAP(target, type, count, values);
45e9809aff7304721fddb95654901b32195c9c7avboxsync crPackChromiumParametervCR(target, type, count, values);
crPackFinish();
if (packspuSyncOnFlushes())
if (writeback)
while (writeback)
crNetRecv();
crPackFlush();
if (packspuSyncOnFlushes())
while (writeback)
crNetRecv();
for (i=0; i<MAX_THREADS; ++i)
if (i>=MAX_THREADS)
static int num_calls = 0;
if (!thread) {
return num_calls++;
while (writeback)
crNetRecv();
return return_val;
GLsizei i;
crError( "packspu_AreTexturesResident doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
while (writeback)
crNetRecv();
if (!residences[i]) {
return return_val;
GLsizei i;
crError( "packspu_AreProgramsResidentNV doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" );
while (writeback)
crNetRecv();
if (!residences[i]) {
return return_val;
#ifdef CR_ARB_pixel_buffer_object
while (writeback)
crNetRecv();
#ifdef CR_ARB_pixel_buffer_object
while (writeback)
crNetRecv();
#ifdef CR_ARB_pixel_buffer_object
while (writeback)
crNetRecv();
#ifdef CR_ARB_pixel_buffer_object
while (writeback)
crNetRecv();
#ifdef CHROMIUM_THREADSAFE
for (i=0; i<MAX_THREADS; ++i)
return ret;
CRASSERT(thread && thread->netServer.conn && thread->netServer.conn->type==CR_VBOXHGCM && thread->bInjectThread);
for (i=0; i<MAX_THREADS; ++i)
if (thread)
for (i=0; i<MAX_THREADS; ++i)
for (i=0; i<MAX_THREADS; ++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;