mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
r300g: fix surface_copy for compressed formats
No accelerated blitting for these, it's too messy.
This commit is contained in:
parent
2df3c361ef
commit
3b2cf97c5c
1 changed files with 2 additions and 1 deletions
|
|
@ -137,7 +137,8 @@ void r300_surface_copy(struct pipe_context* pipe,
|
|||
if (!pipe->screen->is_format_supported(pipe->screen,
|
||||
old_format, src->texture->target,
|
||||
PIPE_BIND_RENDER_TARGET |
|
||||
PIPE_BIND_SAMPLER_VIEW, 0)) {
|
||||
PIPE_BIND_SAMPLER_VIEW, 0) &&
|
||||
util_format_description(old_format)->layout == UTIL_FORMAT_LAYOUT_PLAIN) {
|
||||
switch (util_format_get_blocksize(old_format)) {
|
||||
case 1:
|
||||
new_format = PIPE_FORMAT_I8_UNORM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue