Mesa (master): swr: Removed unnecessary PIPE_BIND flags from swr_is_format_supported

Tim Rowley torowley at kemper.freedesktop.org
Fri Apr 14 20:23:35 UTC 2017


Module: Mesa
Branch: master
Commit: 91a7f0b3afaa88e787d7b80df491928e037967a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91a7f0b3afaa88e787d7b80df491928e037967a4

Author: Bruce Cherniak <bruce.cherniak at intel.com>
Date:   Wed Apr 12 18:53:01 2017 -0500

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 at intel.com>

---

 src/gallium/drivers/swr/swr_screen.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index 3d3d103415..87fd898eb1 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -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;
    }




More information about the mesa-commit mailing list