summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_context.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-10 16:42:26 +0100
committerKeith Whitwell <[email protected]>2007-08-10 16:44:07 +0100
commit39407fd85467141fceafbedf52d9e55e008eb011 (patch)
treec3580533e9e37c1d410eb6bb8f24fd192f27dbcc /src/mesa/pipe/softpipe/sp_context.c
parent1c8bcc733d695732ca704565b3a10ac5f4172ea3 (diff)
Move string functions to state_tracker, add queries to pipe, winsys.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c
index b35bd660815..d67ad2c01da 100644
--- a/src/mesa/pipe/softpipe/sp_context.c
+++ b/src/mesa/pipe/softpipe/sp_context.c
@@ -224,6 +224,16 @@ static GLuint softpipe_get_occlusion_counter(struct pipe_context *pipe)
return softpipe->occlusion_counter;
}
+static const char *softpipe_get_name( struct pipe_context *pipe )
+{
+ return "softpipe";
+}
+
+static const char *softpipe_get_vendor( struct pipe_context *pipe )
+{
+ return "Tungsten Graphics, Inc.";
+}
+
struct pipe_context *softpipe_create( struct pipe_winsys *pipe_winsys,
struct softpipe_winsys *softpipe_winsys )
@@ -259,6 +269,8 @@ struct pipe_context *softpipe_create( struct pipe_winsys *pipe_winsys,
softpipe->pipe.flush = softpipe_flush;
softpipe->pipe.reset_occlusion_counter = softpipe_reset_occlusion_counter;
softpipe->pipe.get_occlusion_counter = softpipe_get_occlusion_counter;
+ softpipe->pipe.get_name = softpipe_get_name;
+ softpipe->pipe.get_vendor = softpipe_get_vendor;
/* textures */
softpipe->pipe.mipmap_tree_layout = softpipe_mipmap_tree_layout;