Zebediah Figura : wined3d: Handle DISCARDED and CLEARED locations in wined3d_texture_get_memory().