[GPU] Log attempts to fetch unsupported texture formats

This commit is contained in:
DrChat 2017-12-20 21:26:52 -06:00
parent d51a244909
commit ecfaaa6c95
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}