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 "state.h"
|
---|
8 | #include "cr_spu.h"
|
---|
9 |
|
---|
10 | void crStateFlushFunc(PCRStateTracker pState, CRStateFlushFunc func )
|
---|
11 | {
|
---|
12 | CRContext *g = GetCurrentContext(pState);
|
---|
13 |
|
---|
14 | g->flush_func = func;
|
---|
15 | }
|
---|
16 |
|
---|
17 | void crStateFlushArg(PCRStateTracker pState, void *arg )
|
---|
18 | {
|
---|
19 | CRContext *g = GetCurrentContext(pState);
|
---|
20 |
|
---|
21 | g->flush_arg = arg;
|
---|
22 | }
|
---|
23 |
|
---|
24 | void crStateDiffAPI(PCRStateTracker pState, SPUDispatchTable *api )
|
---|
25 | {
|
---|
26 | if (!pState->diff_api.AlphaFunc)
|
---|
27 | {
|
---|
28 | /* Called when starting up Chromium */
|
---|
29 | crSPUInitDispatchTable( &pState->diff_api );
|
---|
30 | }
|
---|
31 | crSPUCopyDispatchTable( &pState->diff_api, api );
|
---|
32 | }
|
---|