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:
Chris Wilson 2012-07-21 15:28:10 +01:00
parent d715e1e014
commit 06db69c2c7
1 changed files with 2 additions and 2 deletions

View File

@ -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);