summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrChat <arkolbed@gmail.com>2017-12-20 21:26:52 -0600
committerDrChat <arkolbed@gmail.com>2017-12-20 21:26:52 -0600
commitecfaaa6c959dfca24602128ca5d358b03310fcfd (patch)
tree622ab374f1aa4a74aa8e6d471ecc68b3d6fc34cb
parentd51a244909261e7126661e8fa1ad4a93400029d4 (diff)
[GPU] Log attempts to fetch unsupported texture formats
-rw-r--r--src/xenia/gpu/texture_info.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xenia/gpu/texture_info.cc b/src/xenia/gpu/texture_info.cc
index b700c004f..13cf23c81 100644
--- a/src/xenia/gpu/texture_info.cc
+++ b/src/xenia/gpu/texture_info.cc
@@ -13,9 +13,11 @@
#include <cmath>
#include <cstring>
-#include "third_party/xxhash/xxhash.h"
+#include "xenia/base/logging.h"
#include "xenia/base/math.h"
+#include "third_party/xxhash/xxhash.h"
+
namespace xe {
namespace gpu {
@@ -60,7 +62,8 @@ bool TextureInfo::Prepare(const xe_gpu_texture_fetch_t& fetch,
info.input_length = 0; // Populated below.
if (info.format_info()->format == TextureFormat::kUnknown) {
- assert_true("Unsupported texture format");
+ XELOGE("Attempting to fetch from unsupported texture format %d",
+ info.texture_format);
return false;
}