summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-02-12 15:48:31 +0100
committerMarek Olšák <marek.olsak@amd.com>2017-02-14 21:47:51 +0100
commitc196efcf034279a9d55dce3a7f02807ac803f5f4 (patch)
tree7ae939de2087a75d2ccff72ae2931f7a801a91f5 /src
parent4c36553a46b14f5485140bbb51d3aa35d2b79e14 (diff)
gallium/radeon: add an assertion to texture_transfer_map for app bugs
Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c1
1 files changed, 1 insertions, 0 deletions
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) {