Mesa (master): nouveau: hack winsys to compile again, it' s broken still however
Ben Skeggs
darktama at kemper.freedesktop.org
Mon Aug 31 03:45:29 UTC 2009
Module: Mesa
Branch: master
Commit: 500b2604947cfe99f38119d9e3860fcf5ba8d499
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=500b2604947cfe99f38119d9e3860fcf5ba8d499
Author: Ben Skeggs <bskeggs at redhat.com>
Date: Mon Aug 31 12:55:56 2009 +1000
nouveau: hack winsys to compile again, it's broken still however
---
.../winsys/drm/nouveau/drm/nouveau_drm_api.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
index 3167ccf..cdf67b7 100644
--- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
+++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
@@ -24,9 +24,11 @@ dri_surface_from_handle(struct drm_api *api, struct pipe_screen *screen,
struct pipe_texture templat;
struct pipe_buffer *buf = NULL;
+/*
buf = api->buffer_from_handle(api, screen, "front buffer", handle);
if (!buf)
return NULL;
+*/
memset(&templat, 0, sizeof(templat));
templat.tex_usage = PIPE_TEXTURE_USAGE_PRIMARY |
@@ -269,10 +271,12 @@ nouveau_drm_name_from_pb(struct drm_api *api, struct pipe_screen *pscreen,
struct drm_api drm_api_hooks = {
.create_screen = nouveau_drm_create_screen,
.create_context = nouveau_drm_create_context,
+#if 0
.buffer_from_texture = nouveau_drm_pb_from_pt,
.buffer_from_handle = nouveau_drm_pb_from_handle,
.handle_from_buffer = nouveau_drm_handle_from_pb,
.global_handle_from_buffer = nouveau_drm_name_from_pb,
+#endif
};
struct drm_api *
More information about the mesa-commit
mailing list