mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 17:40:26 +01:00
r300g: fix resource_copy_region for DXT SRGB formats
This commit is contained in:
parent
d3df641f0a
commit
0029979eee
1 changed files with 4 additions and 4 deletions
|
|
@ -426,13 +426,13 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
|
|||
}
|
||||
}
|
||||
|
||||
if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB ||
|
||||
(!pipe->screen->is_format_supported(pipe->screen,
|
||||
if (desc->layout == UTIL_FORMAT_LAYOUT_PLAIN &&
|
||||
(desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB ||
|
||||
!pipe->screen->is_format_supported(pipe->screen,
|
||||
old_format, src->target,
|
||||
src->nr_samples,
|
||||
PIPE_BIND_RENDER_TARGET |
|
||||
PIPE_BIND_SAMPLER_VIEW, 0) &&
|
||||
desc->layout == UTIL_FORMAT_LAYOUT_PLAIN)) {
|
||||
PIPE_BIND_SAMPLER_VIEW, 0))) {
|
||||
switch (util_format_get_blocksize(old_format)) {
|
||||
case 1:
|
||||
new_format = PIPE_FORMAT_I8_UNORM;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue