zink: Use DETECT_OS_WINDOWS instead of 'WIN32'

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18001>
This commit is contained in:
Yonggang Luo
2022-08-11 10:12:34 +08:00
committed by Marge Bot
parent 007d979dbe
commit c3ca94261a
+2 -1
View File
@@ -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