Module: Mesa
Branch: main
Commit: c3ca94261af44e1e80012e838f1b179cf54b188a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3ca94261af44e1e80012e838f1b179cf54b188a

Author: Yonggang Luo <[email protected]>
Date:   Thu Aug 11 10:12:34 2022 +0800

zink: Use DETECT_OS_WINDOWS instead of 'WIN32'

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18001>

---

 src/gallium/drivers/zink/zink_kopper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_kopper.c 
b/src/gallium/drivers/zink/zink_kopper.c
index 3c97c0e8fd3..d54ff5145e4 100644
--- a/src/gallium/drivers/zink/zink_kopper.c
+++ b/src/gallium/drivers/zink/zink_kopper.c
@@ -22,6 +22,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include "util/detect_os.h"
 
 #include "zink_context.h"
 #include "zink_screen.h"
@@ -31,7 +32,7 @@
 static void
 zink_kopper_set_present_mode_for_interval(struct kopper_displaytarget *cdt, 
int interval)
 {
-#ifdef WIN32
+#if DETECT_OS_WINDOWS
     // not hooked up yet so let's not sabotage benchmarks
     cdt->present_mode = VK_PRESENT_MODE_IMMEDIATE_KHR;
 #else

Reply via email to