GPU: add optimization flags to GPU drivers

Signed-off-by: Lens-F <tnoah12@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com> (reverted from commit 3ddffafd1fc2afeb71dae5c754e44c6611fdafe8)