35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From: Jordan Justen <jordan.l.justen@intel.com>
|
|
Date: Wed, 29 Jul 2020 02:26:27 -0700
|
|
Subject: replay: Only support compressonator on x86
|
|
|
|
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
|
|
---
|
|
renderdoc/CMakeLists.txt | 2 +-
|
|
renderdoc/replay/replay_driver.cpp | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/renderdoc/CMakeLists.txt
|
|
+++ b/renderdoc/CMakeLists.txt
|
|
@@ -355,7 +355,7 @@ elseif(UNIX)
|
|
os/posix/posix_specific.h)
|
|
endif()
|
|
|
|
-if(NOT ANDROID)
|
|
+if(RENDERDOC_X86_PROC_FAMILY)
|
|
list(APPEND sources
|
|
3rdparty/compressonator/BC1_Encode_kernel.cpp
|
|
3rdparty/compressonator/BC2_Encode_kernel.cpp
|
|
--- a/renderdoc/replay/replay_driver.cpp
|
|
+++ b/renderdoc/replay/replay_driver.cpp
|
|
@@ -1647,8 +1647,8 @@ bytebuf GetDiscardPattern(DiscardType ty
|
|
fmt.type == ResourceFormatType::BC5 || fmt.type == ResourceFormatType::BC6 ||
|
|
fmt.type == ResourceFormatType::BC7)
|
|
{
|
|
-#if ENABLED(RDOC_ANDROID)
|
|
- RDCERR("Format %s not supported on android", fmt.Name().c_str());
|
|
+#if DISABLED(RDOC_X86_FAMILY)
|
|
+ RDCERR("Format %s is only supported on x86", fmt.Name().c_str());
|
|
#else
|
|
const uint16_t whalf = ConvertToHalf(1000.0f);
|
|
|