Mesa (master): iris: Change vendor and renderer strings

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 16 17:27:33 UTC 2019


Module: Mesa
Branch: master
Commit: 33314cf410f5f16af31a7d076fe89c3768bc4edb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33314cf410f5f16af31a7d076fe89c3768bc4edb

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Apr 16 00:27:33 2019 -0700

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.

---

 src/gallium/drivers/iris/iris_screen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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;
 }
 




More information about the mesa-commit mailing list