mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
swr: Removed unnecessary PIPE_BIND flags from swr_is_format_supported
Removed unnecessary and probably wrong PIPE_BIND_SCANOUT and PIPE_BIND_SHARED flags in favor of check on single PIPE_BIND_DISPLAY_TARGET flag. Reference llvmpipe change <bee4c7718a3bd57e3d99f0913d9081cd13fe5fd> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
97bbb7b6a3
commit
91a7f0b3af
1 changed files with 1 additions and 2 deletions
|
|
@ -103,8 +103,7 @@ swr_is_format_supported(struct pipe_screen *screen,
|
|||
if (sample_count > 1)
|
||||
return FALSE;
|
||||
|
||||
if (bind
|
||||
& (PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED)) {
|
||||
if (bind & PIPE_BIND_DISPLAY_TARGET) {
|
||||
if (!winsys->is_displaytarget_format_supported(winsys, bind, format))
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue