MacBook Pro 2011 doesn’t recognize GPU when installed Sonoma

MacBook Pro 2011 doesn’t recognize <a class='btn-link text-dark' href='/search/label/gpu?max-results=12' target='_blank'>GPU</a> when installed Sonoma

How to fix this as it says that I have 7mb „display” GPU instead of my 512mb HD graphics (As amd radeon is disabled)

Author: @AndroideQ