Mesa (gallium-screen-context): st/python: no need to special case context creation for trace
Keith Whitwell
keithw at kemper.freedesktop.org
Thu Feb 4 16:31:46 UTC 2010
Module: Mesa
Branch: gallium-screen-context
Commit: c99404c03ebaec4175f08a2f363e43c9085f2635
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c99404c03ebaec4175f08a2f363e43c9085f2635
Author: Keith Whitwell <keithw at vmware.com>
Date: Thu Feb 4 16:18:24 2010 +0000
st/python: no need to special case context creation for trace
---
src/gallium/state_trackers/python/st_device.c | 8 +-------
src/gallium/state_trackers/python/st_device.h | 1 -
2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/src/gallium/state_trackers/python/st_device.c b/src/gallium/state_trackers/python/st_device.c
index e41125f..bf1b135 100644
--- a/src/gallium/state_trackers/python/st_device.c
+++ b/src/gallium/state_trackers/python/st_device.c
@@ -158,13 +158,7 @@ st_context_create(struct st_device *st_dev)
st_device_reference(&st_ctx->st_dev, st_dev);
- st_ctx->real_pipe = st_dev->st_ws->context_create(st_dev->real_screen);
- if(!st_ctx->real_pipe) {
- st_context_destroy(st_ctx);
- return NULL;
- }
-
- st_ctx->pipe = trace_context_create(st_dev->screen, st_ctx->real_pipe);
+ st_ctx->pipe = st_dev->screen->create_context(st_dev->screen, NULL);
if(!st_ctx->pipe) {
st_context_destroy(st_ctx);
return NULL;
diff --git a/src/gallium/state_trackers/python/st_device.h b/src/gallium/state_trackers/python/st_device.h
index f786e13..de9e021 100644
--- a/src/gallium/state_trackers/python/st_device.h
+++ b/src/gallium/state_trackers/python/st_device.h
@@ -50,7 +50,6 @@ struct st_surface
struct st_context {
struct st_device *st_dev;
- struct pipe_context *real_pipe;
struct pipe_context *pipe;
struct cso_context *cso;
More information about the mesa-commit
mailing list