3 Commits
Author SHA1 Message Date
Jason Macnak e2c05ae41e Pass strings by reference in graphics detector
Bug: b/366231094
Test: build
Change-Id: I9b72334b54ceda98c22537716bbfc33596f55d89
2024-09-17 09:13:25 -07:00
Jason Macnak 1af6f6bbaa Add option to write to file to graphics detector
... as otherwise running with VK_LAYER_LUNARG_api_dump or
VK_LAYER_KHRONOS_validation will generate additional output and
break proto parsing.

Bug: b/366231094
Test: cvd create
Change-Id: Id7c09f6e275ad3c3a8963e9c401d5b257399b3ef
2024-09-13 05:45:02 +00:00
Jason Macnak f9d926f3be Add a graphics detector
... which can be used to figure out what libs/gpus/drivers/quirks
are present on a machine.

This previously existed in Cuttlefish. However, due to
incompatibilities between Android built host tools and non-Android
built host GPU userspace drivers/libs, we would like to move this
to a prebuilt. Gfxstream is already available as a prebuilt and
the detector seems like it could be more broadly useful so let's
move it into Gfxstream.

Bug: b/297563172
Test: m gfxstream_graphics_detector && gfxstream_graphics_detector
Change-Id: I0e3267eaf948d41fc8f474c48c9d541b05173e05
2023-11-03 14:39:42 -07:00