summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/rbug/rbug_screen.c
diff options
context:
space:
mode:
authorGiuseppe Bilotta <[email protected]>2015-03-22 07:21:01 +0100
committerTom Stellard <[email protected]>2015-03-23 13:25:34 +0000
commit76039b38f0ef54ca61cbe72b899dfcf0f0c724e4 (patch)
treed81f03ca36eefac1481e85f9a570c90c34cb831a /src/gallium/drivers/rbug/rbug_screen.c
parent31d4e6fbffb0c5bcaf92e2c2953f58dc072295d6 (diff)
gallium: implement get_device_vendor() for existing drivers
The only hackish ones are llvmpipe and softpipe, which currently return the same string as for get_vendor(), while ideally they should return the CPU vendor. Signed-off-by: Giuseppe Bilotta <[email protected]> Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_screen.c')
-rw-r--r--src/gallium/drivers/rbug/rbug_screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_screen.c b/src/gallium/drivers/rbug/rbug_screen.c
index 731cc60047a..d5a3164e217 100644
--- a/src/gallium/drivers/rbug/rbug_screen.c
+++ b/src/gallium/drivers/rbug/rbug_screen.c
@@ -68,6 +68,15 @@ rbug_screen_get_vendor(struct pipe_screen *_screen)
return screen->get_vendor(screen);
}
+static const char *
+rbug_screen_get_device_vendor(struct pipe_screen *_screen)
+{
+ struct rbug_screen *rb_screen = rbug_screen(_screen);
+ struct pipe_screen *screen = rb_screen->screen;
+
+ return screen->get_device_vendor(screen);
+}
+
static int
rbug_screen_get_param(struct pipe_screen *_screen,
enum pipe_cap param)
@@ -267,6 +276,7 @@ rbug_screen_create(struct pipe_screen *screen)
rb_screen->base.destroy = rbug_screen_destroy;
rb_screen->base.get_name = rbug_screen_get_name;
rb_screen->base.get_vendor = rbug_screen_get_vendor;
+ rb_screen->base.get_device_vendor = rbug_screen_get_device_vendor;
rb_screen->base.get_param = rbug_screen_get_param;
rb_screen->base.get_shader_param = rbug_screen_get_shader_param;
rb_screen->base.get_paramf = rbug_screen_get_paramf;