From: Nicolai Hähnle Date: Tue, 7 Feb 2017 16:00:10 +0000 (+0100) Subject: winsys/radeon: sparse buffers will not be supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a338f427ac486aeedd2a5a19013ee2550d0ebb1a;p=mesa.git winsys/radeon: sparse buffers will not be supported Reviewed-by: Marek Olšák --- 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;