summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_resource.h
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-04-20 22:01:37 +0200
committerChristoph Bumiller <[email protected]>2010-04-20 22:08:10 +0200
commit3a5b82f3351a0023bfb0594010377c7671c06e28 (patch)
treeda2f9441e70e5889574cbd9561c3a4515d17a0b2 /src/gallium/drivers/nv50/nv50_resource.h
parent03e97e7f8d87f500c008cadd4982537adcfa4969 (diff)
nv50: make a working check for user memory vertex/index buffers
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_resource.h')
-rw-r--r--src/gallium/drivers/nv50/nv50_resource.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_resource.h b/src/gallium/drivers/nv50/nv50_resource.h
index 6cf7662124b..f435a5892e5 100644
--- a/src/gallium/drivers/nv50/nv50_resource.h
+++ b/src/gallium/drivers/nv50/nv50_resource.h
@@ -4,6 +4,8 @@
#include "util/u_transfer.h"
+#include "nouveau/nouveau_winsys.h"
+
struct pipe_resource;
struct nouveau_bo;
@@ -49,6 +51,12 @@ struct nv50_resource *nv50_resource(struct pipe_resource *resource)
return (struct nv50_resource *)resource;
}
+/* is resource mapped into the GPU's address space (i.e. VRAM or GART) ? */
+static INLINE boolean
+nv50_resource_mapped_by_gpu(struct pipe_resource *resource)
+{
+ return nv50_resource(resource)->bo->handle;
+}
void
nv50_init_resource_functions(struct pipe_context *pcontext);