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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user