r600g: reenable hardware blits for STATIC and IMMUTABLE resources
Getting the driver in sync with mainline.
This commit is contained in:
@@ -298,7 +298,7 @@ static boolean permit_hardware_blit(struct pipe_screen *screen,
|
|||||||
/* hackaround for S3TC */
|
/* hackaround for S3TC */
|
||||||
if (util_format_is_compressed(res->format))
|
if (util_format_is_compressed(res->format))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (!screen->is_format_supported(screen,
|
if (!screen->is_format_supported(screen,
|
||||||
res->format,
|
res->format,
|
||||||
res->target,
|
res->target,
|
||||||
@@ -313,16 +313,14 @@ static boolean permit_hardware_blit(struct pipe_screen *screen,
|
|||||||
PIPE_BIND_SAMPLER_VIEW))
|
PIPE_BIND_SAMPLER_VIEW))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
switch (res->usage) {
|
switch (res->usage) {
|
||||||
case PIPE_USAGE_STREAM:
|
case PIPE_USAGE_STREAM:
|
||||||
case PIPE_USAGE_STAGING:
|
case PIPE_USAGE_STAGING:
|
||||||
case PIPE_USAGE_STATIC:
|
return FALSE;
|
||||||
case PIPE_USAGE_IMMUTABLE:
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean r600_texture_get_handle(struct pipe_screen* screen,
|
static boolean r600_texture_get_handle(struct pipe_screen* screen,
|
||||||
|
Reference in New Issue
Block a user