From 76039b38f0ef54ca61cbe72b899dfcf0f0c724e4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 22 Mar 2015 07:21:01 +0100 Subject: 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 Reviewed-by: Tom Stellard --- src/gallium/drivers/i915/i915_screen.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/i915/i915_screen.c') diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 50847e2b42a..7216160bb22 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -54,6 +54,12 @@ i915_get_vendor(struct pipe_screen *screen) return "Mesa Project"; } +static const char * +i915_get_device_vendor(struct pipe_screen *screen) +{ + return "Intel"; +} + static const char * i915_get_name(struct pipe_screen *screen) { @@ -548,6 +554,7 @@ i915_screen_create(struct i915_winsys *iws) is->base.get_name = i915_get_name; is->base.get_vendor = i915_get_vendor; + is->base.get_device_vendor = i915_get_device_vendor; is->base.get_param = i915_get_param; is->base.get_shader_param = i915_get_shader_param; is->base.get_paramf = i915_get_paramf; -- cgit v1.2.3