st/nine: Enforce LOD 0 for D3DUSAGE_AUTOGENMIPMAP
authorAxel Davy <axel.davy@ens.fr>
Fri, 20 Feb 2015 11:34:47 +0000 (12:34 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:11 +0000 (08:28 +0200)
commit58d295d41e30434c570248eeee73af2006b79eea
tree7553128065277d67b89b049c6571f9f6a5c5e5db
parent6f57e014365563c0dcc32451401a76212abf0a54
st/nine: Enforce LOD 0 for D3DUSAGE_AUTOGENMIPMAP

For D3DUSAGE_AUTOGENMIPMAP textures, applications can only
lock/copy from/get surface descriptor for/etc the first level.
Thus it makes sense to restrict the LOD to 0, and use only the first
level to generate the sublevels.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/basetexture9.c
src/gallium/state_trackers/nine/texture9.c