[Mesa-dev] [PATCH 09/21] winsys/radeon: sparse buffers will not be supported

Nicolai Hähnle nhaehnle at gmail.com
Wed Feb 8 12:42:51 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 9872861..9cbb4c2 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -943,6 +943,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;
-- 
2.9.3



More information about the mesa-dev mailing list