From a338f427ac486aeedd2a5a19013ee2550d0ebb1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Tue, 7 Feb 2017 17:00:10 +0100 Subject: [PATCH] winsys/radeon: sparse buffers will not be supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- 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 fe2aa90a0c9..9bbf1b32501 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -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; -- 2.30.2