~emersion/drmdb

08eb22b25d7e4db68dafaafed0e3a2946a825fc9 — Simon Ser 19 days ago 1c4c2c9 master
Hide drivers with no filtered support in formats page
1 files changed, 6 insertions(+), 2 deletions(-)

M server.go
M server.go => server.go +6 -2
@@ 605,8 605,7 @@ func New() *echo.Echo {
				return nil
			}

			drivers[n.Driver.Name]++

			driverSeen := false
			planeFormats := make(map[drm.PlaneType]map[modifierAndFormat]bool)
			driverFormats := make(map[modifierAndFormat]bool)



@@ 649,6 648,11 @@ func New() *echo.Echo {
							formats[k].Drivers[n.Driver.Name]++
							driverFormats[k] = true
						}

						if !driverSeen {
							drivers[n.Driver.Name]++
							driverSeen = true
						}
					}
				}
			}