wined3d: Put the SRG read capability check in its own function.