[Mesa-dev] [PATCH V2 06/22] i965: Skip texture validation for immutable-format textures.

Eric Anholt eric at anholt.net
Fri Feb 21 16:21:20 PST 2014


Chris Forbes <chrisf at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140221/79d0ae37/attachment.pgp>


More information about the mesa-dev mailing list