mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 03:20:09 +01:00
r600: ignore PIPE_BIND_LINEAR in *_is_format_supported
Similar to radeonsi linear layout should work for all not compressed or depth/stencil formats. Fixes issues with VDPAU on r600. Signed-off-by: Christian König <christian.koenig@amd.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
9a73f5728e
commit
1faca438bd
2 changed files with 10 additions and 0 deletions
|
|
@ -299,6 +299,11 @@ boolean evergreen_is_format_supported(struct pipe_screen *screen,
|
|||
if (usage & PIPE_BIND_TRANSFER_WRITE)
|
||||
retval |= PIPE_BIND_TRANSFER_WRITE;
|
||||
|
||||
if ((usage & PIPE_BIND_LINEAR) &&
|
||||
!util_format_is_compressed(format) &&
|
||||
!(usage & PIPE_BIND_DEPTH_STENCIL))
|
||||
retval |= PIPE_BIND_LINEAR;
|
||||
|
||||
return retval == usage;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -239,6 +239,11 @@ boolean r600_is_format_supported(struct pipe_screen *screen,
|
|||
if (usage & PIPE_BIND_TRANSFER_WRITE)
|
||||
retval |= PIPE_BIND_TRANSFER_WRITE;
|
||||
|
||||
if ((usage & PIPE_BIND_LINEAR) &&
|
||||
!util_format_is_compressed(format) &&
|
||||
!(usage & PIPE_BIND_DEPTH_STENCIL))
|
||||
retval |= PIPE_BIND_LINEAR;
|
||||
|
||||
return retval == usage;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue