sna: Update assertion for cached io buffers
As kgem_buffers may be reused and repurposed through the snoop cache it is no longer true that only proxies will have the io flag set. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d715e1e014
commit
06db69c2c7
|
|
@ -417,7 +417,7 @@ void kgem_get_tile_size(struct kgem *kgem, int tiling,
|
|||
|
||||
static inline int __kgem_buffer_size(struct kgem_bo *bo)
|
||||
{
|
||||
assert(bo->proxy && bo->io);
|
||||
assert(bo->proxy != NULL);
|
||||
return bo->size.bytes;
|
||||
}
|
||||
|
||||
|
|
@ -429,7 +429,7 @@ static inline int __kgem_bo_size(struct kgem_bo *bo)
|
|||
|
||||
static inline int kgem_bo_size(struct kgem_bo *bo)
|
||||
{
|
||||
if (bo->io)
|
||||
if (bo->proxy)
|
||||
return __kgem_buffer_size(bo);
|
||||
else
|
||||
return __kgem_bo_size(bo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue