[GPU] Log attempts to fetch unsupported texture formats
This commit is contained in:
@@ -13,9 +13,11 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "third_party/xxhash/xxhash.h"
|
#include "xenia/base/logging.h"
|
||||||
#include "xenia/base/math.h"
|
#include "xenia/base/math.h"
|
||||||
|
|
||||||
|
#include "third_party/xxhash/xxhash.h"
|
||||||
|
|
||||||
namespace xe {
|
namespace xe {
|
||||||
namespace gpu {
|
namespace gpu {
|
||||||
|
|
||||||
@@ -60,7 +62,8 @@ bool TextureInfo::Prepare(const xe_gpu_texture_fetch_t& fetch,
|
|||||||
info.input_length = 0; // Populated below.
|
info.input_length = 0; // Populated below.
|
||||||
|
|
||||||
if (info.format_info()->format == TextureFormat::kUnknown) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user