[PATCH 1/5] wined3d: Introduce wined3d_stateblock_get_state().