r600g: Handle PIPE_TRANSFER_MAP_DIRECTLY.
If the state tracker tries to map the resource directly but we can't or don't want to do that, fail to create a transfer. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f5a4e04cdb
commit
702838a706
|
@ -647,6 +647,9 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
|
||||||
(texture->flags & R600_RESOURCE_FLAG_TRANSFER))
|
(texture->flags & R600_RESOURCE_FLAG_TRANSFER))
|
||||||
use_staging_texture = FALSE;
|
use_staging_texture = FALSE;
|
||||||
|
|
||||||
|
if (use_staging_texture && (usage & PIPE_TRANSFER_MAP_DIRECTLY))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
trans = CALLOC_STRUCT(r600_transfer);
|
trans = CALLOC_STRUCT(r600_transfer);
|
||||||
if (trans == NULL)
|
if (trans == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue