Make shape cache invalidation more conservative. (#1670)
Repeated calls to nvte_shape should not invalidate
previous data pointers.
It would be possible to avoid unnecessary comparisons
by duplicating some of the logic from shape() so that
the cache is only relevant when columnwise shapes are
involved. Whether this code duplication is preferable
to the comparisons that arise from by value semantics
of reusing shape is a judgment call.
Signed-off-by:
Keith Wyss <kwyss@nvidia.com>
Showing
Please register or sign in to comment