radeonsi: re-enable PBO ReadPixels acceleration
disabled by 4f1cccf570
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
7c6e88b643
commit
f39439d166
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue