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>
This commit is contained in:
Marek Olšák 2017-02-12 15:48:31 +01:00
parent 4c36553a46
commit c196efcf03

View file

@ -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) {