| Age | Commit message (Collapse) | Author |
|
This replaces the old instruction sequence with one that is considerably
shorter. Main ideas are as follows:
- Use AND with constant mask to isolate the needed bits.
- Use ORR + LSL/LSR to shift the bits into position and combine in one
instruction where possible.
- Red and blue are already sequential, so don't need to wait for the
byteswap. This is especially handy for red, where the bits are
already where they need to be.
- Red and blue can be expanded from 5 to 8 bits together.
Before:
ldurh w14, [x0, #0x1]
rev16 w14, w14
and w15, w14, #0x1f
orr w15, wzr, w15, lsl #3
orr w15, w15, w15, lsr #5
orr w16, wzr, w15, lsl #16
ubfx w15, w14, #5, #6
orr w15, wzr, w15, lsl #2
orr w15, w15, w15, lsr #6
orr w16, w16, w15, lsl #8
ubfx w15, w14, #11, #5
orr w16, w16, w15, lsl #3
orr w16, w16, w15, lsr #2
orr w16, w16, #0xff000000
str w16, [x1, #0xc]
After:
ldurh w14, [x0, #0x1]
rev16 w15, w14
bfi w14, w14, #11, #13
and w16, w14, #0xf800f8
and w14, w14, #0xe000e0
orr w16, w16, #0xff000000
orr w16, w16, w14, lsr #5
and w14, w15, #0x7e0
and w15, w15, #0x600
orr w14, w14, w15, lsr #6
orr w16, w16, w14, lsl #5
str w16, [x1, #0xc]
|
|
|
|
This reverts commit 86da6c98fbd229d87de7cf8b9c7eb94c16923829.
|
|
cleanups.
|
|
Common: Introduce MD5Context class and ComputeMD5 function to minimize mbedtls dependence.
|
|
This instruction effectively performs the following computation:
```
Xresult = SXTW(slice_length) - Xresult + global_timer;
```
ARM64 has a dedicated sign extension instruction, but also allows this
sign extension to happen as part of many arithmetic operations. By
reordering the computation, we can take advantage of this:
```
Xresult = global_timer + SXTW(slice_length) - Xresult;
```
Before:
```
ldr w24, [x29, #0x2f0]
scvtf s8, w24
ldr s9, [x27, #0x20]
fmul s8, s8, s9
fcvtzs x25, s8
ldp x24, x23, [x27]
sxtw x23, w23
sub x25, x23, x25
add x25, x25, x24
ldp x24, x23, [x27, #0x10]
sub x25, x25, x23
mov x23, #-0x5555555555555556 ; =-6148914691236517206
add x23, x23, #0x1
umulh x25, x25, x23
add x25, x24, x25, lsr #3
str x25, [x29, #0x770]
```
After:
```
ldr w24, [x29, #0x2f0]
scvtf s8, w24
ldr s9, [x27, #0x20]
fmul s8, s8, s9
fcvtzs x25, s8
ldp x24, x23, [x27]
add x24, x24, w23, sxtw
sub x25, x24, x25
ldp x24, x23, [x27, #0x10]
sub x25, x25, x23
mov x23, #-0x5555555555555556 ; =-6148914691236517206
add x23, x23, #0x1
umulh x25, x25, x23
add x25, x24, x25, lsr #3
str x25, [x29, #0x770]
```
|
|
|
|
|
|
|
|
to mbedtls throughout the project.
|
|
Qt 6.2 has been de facto required since
afa6e26e5de58e942c8e7ef3a02632ccfb851d3d added a call to
QPixmap::deviceIndependentSize which was introduced in that Qt version.
Qt 6.2 was released 5 years ago and we've required 6.2+ for over 2
years, so let's make that requirement explicit in CMakeLists.txt instead
of having an apparently random compile error if anyone happens to try
building with an older Qt version.
|
|
LLM generated explaination for the LLM generated commit:
A queued QTimerEvent can be dispatched after the timer was already killed (Qt recycles timer ids), e.g. when a slider is dragged and enter/leave events fire in rapid succession. In that case m_timer_id is empty and dereferencing it in timerEvent() asserts on 'this->_M_is_engaged()' in debug builds, while in release builds it passes a garbage timer id to killTimer().
Only process the event if it matches the timer we are tracking, which also prevents showing a balloon for a stale event.
|
|
|
|
not something to assume
If an unconditional branch is not the last instruction of the block, assuming that this means that the branch must have been followed is an unsafe assumption on how the analyzer works that may not hold true in the future.
As a bonus: JitArm64, unlike x86, didn't skip followed `bcx`s. Now it does.
|
|
VideoCommon: remove global framebuffer manager from EFBInterface
|
|
Traversal: update pending-packet time on socket timeout
|
|
DiscIO/CachedBlob: Minor cleanup by replacing std::thread with std::jthread.
|
|
Jit: Use LazyMemoryRegion-backed bit sets
|
|
AMMediaboard: Change accept non-blocking logic
|
|
Debugger: Fix centering of disabled breakpoints
|
|
Core: Movie and State: Add 'L' option to fmt format string to actually use the current locale.
|
|
|
|
pass it in
|
|
libc++ 23 enforces the dependency from certain stdlib.
In this case, we need <vector> here or build will fail.
Signed-off-by: WalterCool <waltercool@slash.cl>
|
|
This improves the time reported by the CMPR unit test. The lowest value
is about 14% lower, but there's more variance, with the highest value
being similar to before. The instruction count has increased.
I'm putting this in a separate commit so the older implementation is
available in the commit history for anyone wanting to look at it.
|
|
We already have x64 SIMD implementations for decoding most texture
formats. This commit adds AArch64 SIMD implementations for all texture
formats except the XFB format. (AArch64 was previously using the
non-SIMD implementations from TextureDecoder_Generic.cpp.)
I left a few TODO comments about things that could be improved using
optional ISA extensions. I don't have any immediate plans to work on
these.
Performance numbers from the unit test are available below. Note that
the unit test fits relatively well in cache, so real workloads might
spend more time waiting on memory, which could lead to smaller
differences between the old and new implementation.
Before:
I4 took 2676 ns on average (36 iterations)
I8 took 3961 ns on average (36 iterations)
IA4 took 7304 ns on average (36 iterations)
IA8 took 4555 ns on average (36 iterations)
RGB565 took 12146 ns on average (36 iterations)
RGB5A3 took 33155 ns on average (36 iterations)
RGBA8 took 3702 ns on average (36 iterations)
C4 (IA8) took 9149 ns on average (36 iterations)
C4 (RGB565) took 19398 ns on average (36 iterations)
C4 (RGB5A3) took 28533 ns on average (36 iterations)
C8 (IA8) took 6766 ns on average (36 iterations)
C8 (RGB565) took 15577 ns on average (36 iterations)
C8 (RGB5A3) took 18906 ns on average (36 iterations)
C14X2 (IA8) took 10603 ns on average (36 iterations)
C14X2 (RGB565) took 20700 ns on average (36 iterations)
C14X2 (RGB5A3) took 38878 ns on average (36 iterations)
CMPR took 6205 ns on average (36 iterations)
After:
I4 took 2086 ns on average (36 iterations)
I8 took 1699 ns on average (36 iterations)
IA4 took 1522 ns on average (36 iterations)
IA8 took 1673 ns on average (36 iterations)
RGB565 took 2443 ns on average (36 iterations)
RGB5A3 took 3922 ns on average (36 iterations)
RGBA8 took 1983 ns on average (36 iterations)
C4 (IA8) took 1646 ns on average (36 iterations)
C4 (RGB565) took 2057 ns on average (36 iterations)
C4 (RGB5A3) took 1670 ns on average (36 iterations)
C8 (IA8) took 3765 ns on average (36 iterations)
C8 (RGB565) took 4275 ns on average (36 iterations)
C8 (RGB5A3) took 5146 ns on average (36 iterations)
C14X2 (IA8) took 5121 ns on average (36 iterations)
C14X2 (RGB565) took 5572 ns on average (36 iterations)
C14X2 (RGB5A3) took 7142 ns on average (36 iterations)
CMPR took 3250 ns on average (36 iterations)
|
|
All existing callers pass the width minus one, and passing the width
without subtracting one gives incorrect results. Let's call the
parameter image_width_minus_1, like TextureSampler.cpp already calls it.
|
|
|
|
the current locale.
|
|
|
|
|
|
NetPlayConfigLoader: Fix GCAdapter handling.
|
|
NetPlay: reject oversized Wii save banners
|
|
VideoCommon: validate restored FIFO pointers
|
|
VideoCommon: Prefer Vulkan over OpenGL on Linux
|
|
VideoCommon: refactor texture cache frame buffer copies
|
|
VideoCommon: split partial texture update logic from the actual rendering
|
|
VideoCommon: remove remnants of old custom shader feature
|
|
|
|
VideoCommon: return a RcTcacheEntry (shared_ptr) from TextureCacheBase::Load()
|
|
Save states restored video FIFO pointers from unchecked offsets. A
crafted offset could place a pointer outside its backing allocation and
turn the next gather-pipe copy into an out-of-bounds native write.
Require pointer offsets to stay within their backing array and reject a
state when either offset is invalid or the read pointer follows the write
pointer.
|
|
The save sync parser preserved an oversized banner length after limiting
the copy into the fixed header buffer. The NAND writer then used the
untrusted length and read beyond the stack object.
Reject invalid or oversized lengths before copying the banner.
|
|
a future enhancement
|
|
replaced by Materials in the future
|
|
VideoCommon: Work around Adreno TEV zero input miscompilation
|
|
Some Qualcomm Android drivers from version 700 onward miscompile
specialized TEV pixel shaders when color input A or B is TevColorArg::Zero.
Use konstLookup[8].rgb, which PixelShaderManager initializes to zero,
to keep these inputs dependent on a uniform value.
Use the existing driver bug gate for OpenGL and Vulkan. Other inputs and
unaffected drivers retain their original shader expressions.
|
|
|
|
This allows the texture entry to be stored off or passed around and shared in the future
|
|
MemArenaDarwin: Eliminate use of mach_make_memory_entry_64
|
|
per block
(Tested NBA Live 2005)
Profiling codegen performance showed that one of the slower functions was inserting elements to this map.
By inserting instead a vector of all the entries of a block, this disappears from the profiling, and the improvement is noticeable (tested the match intro sequence, though exact numbers are hard to gather).
On x86 (ARM was already doing it), now erasing a block will also delete the corresponding entries from the map.
|