summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2009-02-05 13:17:12 +1000
committerBen Skeggs <skeggsb@gmail.com>2009-02-05 13:18:44 +1000
commitae8a7544d1ab96240f646ea91fb149227067a2db (patch)
treec52829570d9eb65987dca0466fcdf250934ed076 /src/gallium/winsys
parentee97bcc66c270a8a5152988213190d910302a0dd (diff)
nouveau: support getting "native" bo from winsys
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c
index 527c09cf6b..ef7e8aac54 100644
--- a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c
+++ b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys.c
@@ -81,6 +81,12 @@ nouveau_pipe_push_flush(struct nouveau_winsys *nvws, unsigned size,
return nouveau_pushbuf_flush(nvws->channel, size);
}
+static struct nouveau_bo *
+nouveau_pipe_get_bo(struct pipe_buffer *pb)
+{
+ return ((struct nouveau_pipe_buffer *)pb)->bo;
+}
+
struct pipe_context *
nouveau_pipe_create(struct nouveau_context *nv)
{
@@ -151,6 +157,8 @@ nouveau_pipe_create(struct nouveau_context *nv)
nvws->surface_copy = nouveau_pipe_surface_copy;
nvws->surface_fill = nouveau_pipe_surface_fill;
+ nvws->get_bo = nouveau_pipe_get_bo;
+
ws = nouveau_create_pipe_winsys(nv);
if (!nvc->pscreen)