!UPSTREAM: Support fast clear for non-mipmapped textures.

TODO:

- Merge into previous patches.