Mesa (gallium-0.2): gallium: Don' t ask winsys name -- let pipe screen do that if it wants.
Zack Rusin
zack at kemper.freedesktop.org
Sun Feb 1 23:51:17 UTC 2009
Module: Mesa
Branch: gallium-0.2
Commit: ecc0e1ec2e5f8283ccae39e3fd18528fa9c3c95b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecc0e1ec2e5f8283ccae39e3fd18528fa9c3c95b
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jan 30 22:04:15 2009 +0000
gallium: Don't ask winsys name -- let pipe screen do that if it wants.
Allows to leave screen->winsys NULL.
---
src/mesa/state_tracker/st_cb_strings.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/mesa/state_tracker/st_cb_strings.c b/src/mesa/state_tracker/st_cb_strings.c
index 27e396a..2036cca 100644
--- a/src/mesa/state_tracker/st_cb_strings.c
+++ b/src/mesa/state_tracker/st_cb_strings.c
@@ -36,8 +36,6 @@
#include "main/version.h"
#include "pipe/p_context.h"
#include "pipe/p_screen.h"
-/* We want the name of the winsys we're running on*/
-#include "pipe/internal/p_winsys_screen.h"
#include "st_context.h"
#include "st_cb_strings.h"
@@ -68,10 +66,9 @@ st_get_string(GLcontext * ctx, GLenum name)
}
case GL_RENDERER:
- util_snprintf(st->renderer, sizeof(st->renderer), "Gallium %s, %s on %s",
+ util_snprintf(st->renderer, sizeof(st->renderer), "Gallium %s on %s",
ST_VERSION_STRING,
- screen->get_name( screen ),
- screen->winsys->get_name( screen->winsys ));
+ screen->get_name( screen ));
return (GLubyte *) st->renderer;
More information about the mesa-commit
mailing list