• kwyss-nvidia's avatar
    Make shape cache invalidation more conservative. (#1670) · dfb3c486
    kwyss-nvidia authored
    
    
    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: default avatarKeith Wyss <kwyss@nvidia.com>
    dfb3c486
common.h 22.4 KB