From efc79c6e91f6e7c226eabfb1e371840a2df09782 Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Mon, 24 Feb 2014 11:24:25 +0200 Subject: ANGLE: Allow for universal program binaries As a safety precaution, ANGLE writes the commit hash, optimization level, and adapter ID to its binary format. However, this hurts portability between systems by making shader pre-compilation/caching artificially system-specific. The shader compiler doesn't take the target adapter into account, and the optimization level information discarded by ANGLE anyway. So, allow ANGLE to bypass these checks on systems where precompilation is required (i.e. WinRT). The default mechanism still applies unless ANGLE_ENABLE_UNIVERSAL_BINARY is passed as a define. Change-Id: Iec6d833fd7010ed163978557238f00e7ac6ae416 Reviewed-by: Oliver Wolff --- src/angle/src/config.pri | 1 + 1 file changed, 1 insertion(+) (limited to 'src/angle/src/config.pri') diff --git a/src/angle/src/config.pri b/src/angle/src/config.pri index c6dbb90ec7..c3cc7e02c1 100644 --- a/src/angle/src/config.pri +++ b/src/angle/src/config.pri @@ -40,6 +40,7 @@ DEFINES += _WINDOWS \ # Defines specifying the API version (0x0600 = Vista, 0x0602 = Win8)) winrt { DEFINES += _WIN32_WINNT=0x0602 WINVER=0x0602 + DEFINES += ANGLE_ENABLE_UNIVERSAL_BINARY } else { DEFINES += _WIN32_WINNT=0x0600 WINVER=0x0600 DEFINES += ANGLE_ENABLE_D3D9 -- cgit v1.2.3