mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
r600g: reenable texture uploads, but keep R16_SNORM disabled
This commit is contained in:
parent
a51b0daa59
commit
431e72984b
1 changed files with 5 additions and 2 deletions
|
|
@ -531,6 +531,9 @@ static boolean permit_hardware_blit(struct pipe_screen *screen,
|
|||
PIPE_BIND_SAMPLER_VIEW, 0))
|
||||
return FALSE;
|
||||
|
||||
if (res->format == PIPE_FORMAT_R16_SNORM)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -571,8 +574,8 @@ struct pipe_transfer* r600_texture_get_transfer(struct pipe_context *ctx,
|
|||
PIPE_TRANSFER_UNSYNCHRONIZED)))
|
||||
use_staging_texture = TRUE;
|
||||
|
||||
/*if (!permit_hardware_blit(ctx->screen, texture) ||
|
||||
(texture->flags & R600_RESOURCE_FLAG_TRANSFER))*/
|
||||
if (!permit_hardware_blit(ctx->screen, texture) ||
|
||||
(texture->flags & R600_RESOURCE_FLAG_TRANSFER))
|
||||
use_staging_texture = FALSE;
|
||||
|
||||
trans = CALLOC_STRUCT(r600_transfer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue