winsys/radeon: sparse buffers will not be supported
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 7 Feb 2017 16:00:10 +0000 (17:00 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Apr 2017 08:37:17 +0000 (10:37 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c

index fe2aa90a0c96e503619f19e8819aa2df5bed7020..9bbf1b325012b884786e61d86c839e389a15aac2 100644 (file)
@@ -936,6 +936,8 @@ radeon_winsys_bo_create(struct radeon_winsys *rws,
     struct radeon_bo *bo;
     unsigned usage = 0, pb_cache_bucket;
 
+    assert(!(flags & RADEON_FLAG_SPARSE)); /* not supported */
+
     /* Only 32-bit sizes are supported. */
     if (size > UINT_MAX)
         return NULL;