• Nanley Chery's avatar
    iris: Fix aux assertion in resource_get_handle · 78764a41
    Nanley Chery authored and Dylan Baker's avatar Dylan Baker committed
    iris_resource_get_handle currently asserts that the resource has an aux
    state that is suitable for sharing. However, the caller of this function
    can pass a flag to specify that it will handle flushing/resolving the
    resource as needed for sharing. Take this flag into account when
    asserting the state of the aux buffer.
    
    Fixes: e8139286 ("iris/resource: Drop redundant checks for aux support")
    Closes: #128
    
    Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
    Part-of: <!1371>
    (cherry picked from commit 3cf6325e)
    78764a41
iris_resource.c 74.4 KB