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 <giuseppe.bilotta@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Giuseppe Bilotta
2015-03-22 07:21:01 +01:00
committed by Tom Stellard
parent 31d4e6fbff
commit 76039b38f0
13 changed files with 83 additions and 0 deletions

View File

@@ -514,6 +514,12 @@ ilo_get_vendor(struct pipe_screen *screen)
return "LunarG, Inc.";
}
static const char *
ilo_get_device_vendor(struct pipe_screen *screen)
{
return "Intel";
}
static const char *
ilo_get_name(struct pipe_screen *screen)
{
@@ -844,6 +850,7 @@ ilo_screen_create(struct intel_winsys *ws)
is->base.destroy = ilo_screen_destroy;
is->base.get_name = ilo_get_name;
is->base.get_vendor = ilo_get_vendor;
is->base.get_device_vendor = ilo_get_device_vendor;
is->base.get_param = ilo_get_param;
is->base.get_paramf = ilo_get_paramf;
is->base.get_shader_param = ilo_get_shader_param;