i965: Simplify brw_get_renderer_string()
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Dec 2019 09:00:14 +0000 (01:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Jan 2020 03:42:22 +0000 (19:42 -0800)
commit44bad9c31a11ca7bf67cba7eaa094963b5f5a2f7
tree9740855b09c2d0d792c379d6a1cccc9b3d37d708
parent50c47ba49edc525bb8bca7a95cf75d7275a21a76
i965: Simplify brw_get_renderer_string()

This stops using driGetRendererString() in favor of a simple snprintf().
This should have the same functionality on 64-bit systems, but drops
a "x86/MMX/SSE2" suffix on 32-bit systems.  (People shouldn't be using
the GL_RENDERER string to check for CPU features...)

We also use gen_get_device_name() instead of PCI ID list munging.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3371>
src/mesa/drivers/dri/i965/brw_context.c