Last change
on this file since 78408 was 78408, checked in by vboxsync, 6 years ago |
Additions,GuestHost/OpenGL,HostServices/SharedOpenGL: Get rid of the individual SPU shared libraries and merge them into the VBoxSharedCrOpenGL shared libraries on the host and VBoxOGL{,-x86} shared libraries for the guest additions, bugref:9435
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.2 KB
|
Line | |
---|
1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include <stdio.h>
|
---|
8 | #include "cr_spu.h"
|
---|
9 |
|
---|
10 | extern SPUNamedFunctionTable _cr_error_table[];
|
---|
11 |
|
---|
12 | static SPUFunctions error_functions = {
|
---|
13 | NULL, /* CHILD COPY */
|
---|
14 | NULL, /* DATA */
|
---|
15 | _cr_error_table /* THE ACTUAL FUNCTIONS */
|
---|
16 | };
|
---|
17 |
|
---|
18 | static SPUFunctions *errorSPUInit( int id, SPU *child, SPU *self,
|
---|
19 | unsigned int context_id,
|
---|
20 | unsigned int num_contexts )
|
---|
21 | {
|
---|
22 | (void) id;
|
---|
23 | (void) context_id;
|
---|
24 | (void) num_contexts;
|
---|
25 | (void) child;
|
---|
26 | (void) self;
|
---|
27 | return &error_functions;
|
---|
28 | }
|
---|
29 |
|
---|
30 | static void errorSPUSelfDispatch(SPUDispatchTable *parent)
|
---|
31 | {
|
---|
32 | (void)parent;
|
---|
33 | }
|
---|
34 |
|
---|
35 | static int errorSPUCleanup(void)
|
---|
36 | {
|
---|
37 | return 1;
|
---|
38 | }
|
---|
39 |
|
---|
40 |
|
---|
41 | DECLHIDDEN(const SPUREG) g_ErrorSpuReg =
|
---|
42 | {
|
---|
43 | /** pszName. */
|
---|
44 | #ifdef IN_GUEST
|
---|
45 | "error",
|
---|
46 | #else
|
---|
47 | "hosterror",
|
---|
48 | #endif
|
---|
49 | /** pszSuperName. */
|
---|
50 | NULL,
|
---|
51 | /** fFlags. */
|
---|
52 | SPU_NO_PACKER | SPU_NOT_TERMINAL | SPU_MAX_SERVERS_ZERO,
|
---|
53 | /** pfnInit. */
|
---|
54 | errorSPUInit,
|
---|
55 | /** pfnDispatch. */
|
---|
56 | errorSPUSelfDispatch,
|
---|
57 | /** pfnCleanup. */
|
---|
58 | errorSPUCleanup
|
---|
59 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.