From: Marek Olšák Date: Sun, 12 Feb 2017 14:48:31 +0000 (+0100) Subject: gallium/radeon: add an assertion to texture_transfer_map for app bugs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c196efcf034279a9d55dce3a7f02807ac803f5f4;p=mesa.git gallium/radeon: add an assertion to texture_transfer_map for app bugs Tested-by: Kai Wasserbäch Reviewed-by: Kai Wasserbäch --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 5d84eb4a086..47aa8b12531 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -1434,6 +1434,7 @@ static void *r600_texture_transfer_map(struct pipe_context *ctx, bool use_staging_texture = false; assert(!(texture->flags & R600_RESOURCE_FLAG_TRANSFER)); + assert(box->width && box->height && box->depth); /* Depth textures use staging unconditionally. */ if (!rtex->is_depth) {