diff options
author | Kenneth Graunke <[email protected]> | 2019-04-16 00:27:33 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-04-16 10:27:20 -0700 |
commit | 33314cf410f5f16af31a7d076fe89c3768bc4edb (patch) | |
tree | e3a8b5bc94dece04a054918b8cbe216e82bcdaaa | |
parent | 56d9532316ca9ab20f0b23f63f68dc8a3decf07f (diff) |
iris: Change vendor and renderer strings
This patch changes the GL_VENDOR string from "Mesa Project" to "Intel".
This makes GLX_MESA_query_renderer report "Vendor: Intel (0x8086)"
instead of "Vendor: Mesa Project (0x8086)" which is arguably wrong.
We now also use a consistent vendor string across Windows and Linux.
It also prepends "Mesa" to the GL_RENDERER string, both to credit the
community and have a distinguishing mark between the two drivers. We
drop "DRI" compared to i965, as it's not really that important.
Improves performance in Portal by 1.8x. Iris is now 3.86% faster
than i965 at the portal-d1.dem timedemo on my Kabylake laptop. One
change is that Portal selects the MapBufferRange path based on the
vendor string, and iris's BufferSubData path is still missing the
storage invalidation optimization.
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 02322436773..6dff3a47b65 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -63,7 +63,7 @@ iris_flush_frontbuffer(struct pipe_screen *_screen, static const char * iris_get_vendor(struct pipe_screen *pscreen) { - return "Mesa Project"; + return "Intel"; } static const char * @@ -76,6 +76,7 @@ static const char * iris_get_name(struct pipe_screen *pscreen) { struct iris_screen *screen = (struct iris_screen *)pscreen; + static char buf[128]; const char *chipset; switch (screen->pci_id) { @@ -86,6 +87,8 @@ iris_get_name(struct pipe_screen *pscreen) chipset = "Unknown Intel Chipset"; break; } + + snprintf(buf, sizeof(buf), "Mesa %s", chipset); return chipset; } |