mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-25 18:18:59 +02:00
beware evil comp shit
This commit is contained in:
parent
0a8c413708
commit
624aff4e92
2 changed files with 8 additions and 7 deletions
|
|
@ -798,15 +798,15 @@ int FindLayout(uint mode) {
|
||||||
const uint sh3_mode = (mode >> 2) & 3;
|
const uint sh3_mode = (mode >> 2) & 3;
|
||||||
const uint sh0_mode = ((mode >> 6) & 6) | ((mode >> 5) & 1);
|
const uint sh0_mode = ((mode >> 6) & 6) | ((mode >> 5) & 1);
|
||||||
const uint fl_const_table = 0
|
const uint fl_const_table = 0
|
||||||
| ((1) << (2 * 3)) //0080 -> 2, 1 + 5 = 6
|
| ((1) << (2 * 4)) //0080 -> 2, 1 + 5 = 6
|
||||||
| ((1) << (3 * 3))
|
| ((1) << (3 * 4))
|
||||||
| ((4) << (4 * 3)) //0100 -> 4, 4 + 5 = 9
|
| ((4) << (4 * 4)) //0100 -> 4, 4 + 5 = 9
|
||||||
| ((4) << (5 * 3))
|
| ((4) << (5 * 4))
|
||||||
| ((2) << (6 * 3)) //0180 -> 6, 2 + 5 = 7
|
| ((2) << (6 * 4)) //0180 -> 6, 2 + 5 = 7
|
||||||
| ((3) << (7 * 3)) //01a0 -> 7, 3 + 5 = 8
|
| ((3) << (7 * 4)) //01a0 -> 7, 3 + 5 = 8
|
||||||
;
|
;
|
||||||
const uint if_mode3_t = sh3_mode + uint((mode & 0x10c) == 0x10c);
|
const uint if_mode3_t = sh3_mode + uint((mode & 0x10c) == 0x10c);
|
||||||
const uint if_mode3_f = 5 + ((fl_const_table >> (sh0_mode * 3)) & 7);
|
const uint if_mode3_f = 5 + ((fl_const_table >> (sh0_mode * 4)) & 7);
|
||||||
return int((if_mode3_t & mask) | (if_mode3_f & ~mask));
|
return int((if_mode3_t & mask) | (if_mode3_f & ~mask));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1560,6 +1560,7 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu
|
||||||
runtime->ViewFormats(info.format))),
|
runtime->ViewFormats(info.format))),
|
||||||
aspect_mask(ImageAspectMask(info.format)) {
|
aspect_mask(ImageAspectMask(info.format)) {
|
||||||
if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported()) {
|
if (IsPixelFormatASTC(info.format) && !runtime->device.IsOptimalAstcSupported()) {
|
||||||
|
ASSERT(info.size.depth == 1 && "image is deeply absurd");
|
||||||
flags |= VideoCommon::ImageFlagBits::AcceleratedUpload;
|
flags |= VideoCommon::ImageFlagBits::AcceleratedUpload;
|
||||||
flags |= VideoCommon::ImageFlagBits::Converted;
|
flags |= VideoCommon::ImageFlagBits::Converted;
|
||||||
flags |= VideoCommon::ImageFlagBits::CostlyLoad;
|
flags |= VideoCommon::ImageFlagBits::CostlyLoad;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue