Hardware acceleration not working after upgrading to 12th gen

For posterity, I found a working solution here: