radeonsi: re-enable PBO ReadPixels acceleration

disabled by 4f1cccf570

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2016-06-07 21:34:31 +02:00
parent 7c6e88b643
commit f39439d166
1 changed files with 6 additions and 3 deletions

View File

@ -1784,13 +1784,16 @@ boolean si_is_format_supported(struct pipe_screen *screen,
}
}
if (usage & PIPE_BIND_SAMPLER_VIEW) {
if (usage & (PIPE_BIND_SAMPLER_VIEW |
PIPE_BIND_SHADER_IMAGE)) {
if (target == PIPE_BUFFER) {
if (si_is_vertex_format_supported(screen, format))
retval |= PIPE_BIND_SAMPLER_VIEW;
retval |= usage & (PIPE_BIND_SAMPLER_VIEW |
PIPE_BIND_SHADER_IMAGE);
} else {
if (si_is_sampler_format_supported(screen, format))
retval |= PIPE_BIND_SAMPLER_VIEW;
retval |= usage & (PIPE_BIND_SAMPLER_VIEW |
PIPE_BIND_SHADER_IMAGE);
}
}