to debug GFX problems, you can use apitrace
If you are on windows and have an ATI card, CodeXL can be used.