Chris Forbes <chr...@ijw.co.nz> writes:

> We're about to start sharing miptrees in texture views, and I'd rather
> not teach this validation code about nonzero MinLevel or MinLayer when
> views are guaranteed complete [and all levels resident in the base
> miptree].
>
> The only thing we have to do is set up our _MaxLevel derived state.

You could avoid this by just setting intelObj->validated_first_level = 0
and intelObj->validated_last_level = levels - 1 in TextureView and
TexStorage.  Then you could throw an assert(!texObj->Immutable) after
the !needs_validate early exit, and we'll know for sure that we haven't
done anything broken to the miptee.

Attachment: pgp4mPrYSZJNe.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to