mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 13:30:38 +02:00
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
1 changed files with 6 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue