mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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:
parent
4c36553a46
commit
c196efcf03
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue