diff options
author | Giuseppe Bilotta <[email protected]> | 2015-03-22 07:21:01 +0100 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2015-03-23 13:25:34 +0000 |
commit | 76039b38f0ef54ca61cbe72b899dfcf0f0c724e4 (patch) | |
tree | d81f03ca36eefac1481e85f9a570c90c34cb831a /src/gallium/drivers/r300/r300_screen.c | |
parent | 31d4e6fbffb0c5bcaf92e2c2953f58dc072295d6 (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/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 752d7e59fd5..a7b59d8bfbb 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -47,6 +47,11 @@ static const char* r300_get_vendor(struct pipe_screen* pscreen) return "X.Org R300 Project"; } +static const char* r300_get_device_vendor(struct pipe_screen* pscreen) +{ + return "ATI"; +} + static const char* chip_families[] = { "unknown", "ATI R300", @@ -695,6 +700,7 @@ struct pipe_screen* r300_screen_create(struct radeon_winsys *rws) r300screen->screen.destroy = r300_destroy_screen; r300screen->screen.get_name = r300_get_name; r300screen->screen.get_vendor = r300_get_vendor; + r300screen->screen.get_device_vendor = r300_get_device_vendor; r300screen->screen.get_param = r300_get_param; r300screen->screen.get_shader_param = r300_get_shader_param; r300screen->screen.get_paramf = r300_get_paramf; |