diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2007-12-09 20:38:08 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2007-12-09 20:38:08 +1100 |
commit | 62bbf8db873716c56ca089dbba59d1d3980563b5 (patch) | |
tree | cc06a01ad33039183fd616ee2f0e3e1072883943 /src/mesa/pipe/nouveau | |
parent | b8965bee404cb36ccd97ac089fbd3ffc63268080 (diff) |
nouveau: use "indirect" push buffers
Diffstat (limited to 'src/mesa/pipe/nouveau')
-rw-r--r-- | src/mesa/pipe/nouveau/nouveau_resource.h | 37 | ||||
-rw-r--r-- | src/mesa/pipe/nouveau/nouveau_winsys.h | 12 |
2 files changed, 38 insertions, 11 deletions
diff --git a/src/mesa/pipe/nouveau/nouveau_resource.h b/src/mesa/pipe/nouveau/nouveau_resource.h new file mode 100644 index 0000000000..1af7961d30 --- /dev/null +++ b/src/mesa/pipe/nouveau/nouveau_resource.h @@ -0,0 +1,37 @@ +/* + * Copyright 2007 Nouveau Project + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF + * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#ifndef __NOUVEAU_RESOURCE_H__ +#define __NOUVEAU_RESOURCE_H__ + +struct nouveau_resource { + struct nouveau_resource *prev; + struct nouveau_resource *next; + + int in_use; + void *priv; + + unsigned int start; + unsigned int size; +}; + +#endif diff --git a/src/mesa/pipe/nouveau/nouveau_winsys.h b/src/mesa/pipe/nouveau/nouveau_winsys.h index a274e23af5..ce1744c2ee 100644 --- a/src/mesa/pipe/nouveau/nouveau_winsys.h +++ b/src/mesa/pipe/nouveau/nouveau_winsys.h @@ -10,17 +10,7 @@ #include "pipe/nouveau/nouveau_class.h" #include "pipe/nouveau/nouveau_grobj.h" #include "pipe/nouveau/nouveau_notifier.h" - -struct nouveau_resource { - struct nouveau_resource *prev; - struct nouveau_resource *next; - - boolean in_use; - void *priv; - - uint start; - uint size; -}; +#include "pipe/nouveau/nouveau_resource.h" struct nouveau_winsys { struct nouveau_context *nv; |