[Mesa-dev] [PATCH 0/4] Separate device from driver vendor
Giuseppe Bilotta
giuseppe.bilotta at gmail.com
Thu Mar 5 14:04:50 PST 2015
OpenCL (as opposed to OpenGL) has separate vendor strings for the
implementation/driver/platform and the device. CL_PLATFORM_VENDOR
is akin to the GL_VENDOR string, while CL_DEVICE_VENDOR is supposed to
return the actual device vendor.
(For example, the AMD OpenCL platform returns GenuineIntel as
CL_DEVICE_VENDOR for an Intel CPU.)
This patchset separates (where possible/necessary) the device vendor
from the driver vendor in existing gallium drivers, and makes clover use
the newly introduced device vendor for CL_DEVICE_VENDOR queries.
Giuseppe Bilotta (4):
Whitespace cleanup
Introduce get_device_vendor() entrypoint for pipes
Implement get_device_vendor() for existing drivers
Clover: use get_device_vendor instead of get_vendor
src/gallium/drivers/freedreno/freedreno_screen.c | 1 +
src/gallium/drivers/galahad/glhd_screen.c | 10 ++++++++++
src/gallium/drivers/i915/i915_screen.c | 7 +++++++
src/gallium/drivers/ilo/ilo_screen.c | 7 +++++++
src/gallium/drivers/llvmpipe/lp_screen.c | 1 +
src/gallium/drivers/noop/noop_pipe.c | 6 ++++++
src/gallium/drivers/nouveau/nouveau_screen.c | 7 +++++++
src/gallium/drivers/r300/r300_screen.c | 6 ++++++
src/gallium/drivers/radeon/r600_pipe_common.c | 6 ++++++
src/gallium/drivers/rbug/rbug_screen.c | 10 ++++++++++
src/gallium/drivers/softpipe/sp_screen.c | 1 +
src/gallium/drivers/svga/svga_screen.c | 1 +
src/gallium/drivers/trace/tr_screen.c | 22 ++++++++++++++++++++++
src/gallium/drivers/vc4/vc4_screen.c | 1 +
src/gallium/include/pipe/p_screen.h | 11 ++++++++++-
src/gallium/state_trackers/clover/core/device.cpp | 2 +-
16 files changed, 97 insertions(+), 2 deletions(-)
--
2.1.2.766.gaa23a90
More information about the mesa-dev
mailing list