clover: use get_device_vendor instead of get_vendor
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 22 Mar 2015 06:21:02 +0000 (07:21 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 13:25:34 +0000 (13:25 +0000)
The pipe's get_vendor method returns something more akin to a driver
vendor string in most cases, instead of the actual device vendor. Use
get_device_vendor instead, which was introduced specifically for this
purpose.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/device.cpp

index c3f3b4e42759360296ef510c998fa97804b5c28d..42b45b7f2b8656152ae091f7f4d0bd6733a6d4d9 100644 (file)
@@ -192,7 +192,7 @@ device::device_name() const {
 
 std::string
 device::vendor_name() const {
-   return pipe->get_vendor(pipe);
+   return pipe->get_device_vendor(pipe);
 }
 
 enum pipe_shader_ir