Commit Graph

12337 Commits (274143dfd2fc8ca4cf20cf01afede8e1f3d0c35b)
 

Author SHA1 Message Date
Stenzek 7b690ec1f4
VulkanDevice: Reset descriptor builder storage
Reset all backing-info cursors alongside descriptor writes so a cleared
builder can be reused safely.
2 months ago
Stenzek a8de757b97
VulkanDevice: Store compute specialization values
Write each specialization value into packed backing storage and map entries to
that storage instead of leaving zero-initialized data.

Not used anywhere, but was still wrong.
2 months ago
Stenzek d1720c040b
VulkanDevice: Respect fixed surface extents
Use currentExtent on normal WSI platforms and retain the intentional
window-size override only for Android and macOS.
2 months ago
Stenzek 40e178787a
VulkanDevice: Fix legacy render pass attachments
Don't set the attachment-description flags (was totally wrong).

Describe only the first render target as the feedback-loop input attachment.
2 months ago
Stenzek 5f40f0ac1b
VulkanDevice: Select advertised surface format pairs
Return complete VkSurfaceFormatKHR entries from the surface query, preserve
color spaces, and only choose an arbitrary format for the single
undefined-format case.
2 months ago
Stenzek 8462365389
VulkanDevice: Address texture array subresources
Create array views for layered textures, copy and blit the requested layer.

Also fix the off-by-one in Map().
2 months ago
Stenzek 668f39fabc
VulkanDevice: Wait for presentation before swapchain teardown
Make GPU-idle waits include queued presentation work and use them before resize
and present-mode recreation destroys swapchain semaphores.
2 months ago
Stenzek 037ee47f7e
VulkanDevice: Validate imported host buffer memory
Create the buffer before allocation, intersect both memory-type masks, honor
size and dedicated requirements, and propagate bind failures.

Also require that the memory is coherent, because otherwise we'd have to resort
to architecture-specific cache flush methods. vkInvalidateMappedMemoryRanges()
is only valid on memory mapped by vkMapMemory().
2 months ago
Stenzek 6584adde9b
VulkanDevice: Fix download buffer barrier ranges
Synchronize the actual offset and full pitched-row span written by image
readbacks, and invalidate the matching allocation range on the host.

Also fix the incorrect source stage.
2 months ago
Stenzek 4b5edbb85c
VulkanDevice: Preserve mapped texture upload pitch
Commit and copy partial texture maps with the same mapped-width pitch that was
reserved and returned to the caller.
2 months ago
Stenzek fc3e117f8d
VulkanDevice: Synchronize compute image accesses
Use the compute storage-image layout for dispatches and include compute shader
stages when transitioning sampled images.
2 months ago
Stenzek bbac943b5c
VulkanDevice: Expose shared UBO binding to compute shaders 2 months ago
Stenzek b3b57a2a02
VulkanDevice: Bind initial compute pipelines correctly
Select the pipeline bind point from the pipeline layout while initializing shared
command-buffer state needed by later graphics draws.
2 months ago
Stenzek 213c5b450e
VideoPresenter: Use transfer pitch for screenshots
Unless it's an imported buffer. Should already be the same, but it's
needed for D3D12.
2 months ago
Stenzek 5245a58b0e
Settings: Fix invalid memory card values after install 2 months ago
Stenzek e175c84227
Bus: Pack state in struct 2 months ago
Stenzek 8778034bf2
RegTest: Fix compiling again 2 months ago
Stenzek f11b43227a
System: Add option to install BIOS when missing 2 months ago
Stenzek f1029b2df2
AnimatedImage: Fix possible integer overflow of dimensions 2 months ago
Stenzek 6651f4d197
ISOReader: Fix possible integer overflow in GetSizeInSectors() 2 months ago
Stenzek e0734381a3
CDImageMDS: Fix a bunch of possible buffer overreads 2 months ago
Stenzek 467d0971b1
CDImagePBP: Check SFO index table count before reading 2 months ago
Stenzek b9cf3bbf00
CDImagePBP: Add missing validation of BCD digits 2 months ago
Stenzek a8a098a0ad
Common: Valid BCD functions should return boolean 2 months ago
Stenzek d3ff0b364f
PSFLoader: Add missing header size checks when loading 2 months ago
Stenzek e48b3e302f
Cheats: Fix possible OOB reads in malformed instructions 2 months ago
Stenzek 2688a1dfcd
Achievements: Fix possible read past end of memory in callback 2 months ago
Stenzek cd5e48af95
StateWrapper: Add max size checks to vector/string data
Stops up to 4GB/16GB/32GB memory being allocated.
2 months ago
Stenzek f92b1a81d7
GPU: Add some simple checks to the polyline buffer
This whole thing needs to be removed. But not today.
2 months ago
Stenzek ca5cc7374f
GPU: Add missing serialization of polyline buffer 2 months ago
Stenzek 6e242f5cb1
Bus: Flush line buffer after 512 characters
Prevent an infinite MIPS loop from exhausting memory.
2 months ago
Víctor "IlDucci 2c8e998da7
Spanish (Spain) editing pass - 2026/08/05 (#3781)
After a badly-mannered arrival by a third party, I have decided to research on part of their suggested changes to find out whether or not was a reason to do so.

Here is a short summary of what I have found out:
 - Usage of nonbreaking spaces -> Unlike the previously proposed changes, NBSPs are, in fact, recommended by Microsoft in the official public Style Guide for EU Spanish to avoid separation of units and the numbers that go with them.
 - Usage of quotation marks -> Microsoft's Style Guide, on the other hand, does recommend using doubles (“”) instead of chevrons («»), so all chevrons have been replaced with simple doubles ("). Many other places (UIs from Sony, Nintendo...) do also use doubles in UIs.
   - NOTE: I have also replaced cases where singles are used ('%1'), but Microsoft doesn't seem to contain info regarding the stacking of quotation marks (where RAE would say that singles go inside doubles). This change might need to be reverted.
 - Usage of quotation marks to signal loanwords -> While RAE's rules do explicitly say that loanwords must be highlighted somehow (either with chevrons or italic text), multiple UIs researched (NVidia, ATI, various games from the 2010's) do not do this sort of highlighting at all. All quotation marks that were used to highlight loanwords just for being loanwords have been removed.
 - Consistency pass of expressions like "If checked"/"If unchecked"/"When enabled"/"When disabled"/"When this option is chosen" -> "Al activar esta opción,"/"Al desactivar esta opción,"
 - "Enable"/"Disable" from "habilitar"/"deshabilitar" to "activar"/"desactivar": This is a bit of a potato, potato situation, a preferential change. Microsoft has kept using "habilitar"/"deshabilitar" for many, many years, but it is also true that a non-minor number of references researched do use to "activar"/"desactivar" (it's hard to find examples for Enable/Disable, as many of the UIs I've checked are more of using ON/OFF switches, which are translated to SÍ/NO (YES/NO) for simplicity and less gendering issues). The main reason I was keeping the old ways was to keep elements from those translators who came before me, so it was also a preferential change to keep them as before. Switching to "activar"/"desactivar" and unified all instances.
 - Minor pass to keep consistency with the "save state" translation as "guardado rápido".
 - RetroAchievements: imported some approved RA translations such as casual mode -> modo casual, set -> set, subset -> subset.
 - Other minor translation changes.
2 months ago
Stenzek 1fbfbb57da
System: Fix implicit 32-bit truncation of screenshot size 2 months ago
Stenzek ebd090340d
Updater: Fix possible infinite loop 2 months ago
Stenzek 99fc655faf
Updater: Fix possible path traversal during preprocessing
Low-risk since this shouldn't be coming from an untrusted source, but if
you get MITM'ed...
2 months ago
Stenzek 8a2c05ce58
Image: Avoid integer overflow for dimensions 2 months ago
Stenzek 12a4a26480
Util: Avoid intermediate memory allocation in Shift-JIS conversion 2 months ago
Stenzek 3fed119df0
MediaCapture: Default to H264 on all platforms
H264 is provided by OpenH264 on Linux.
2 months ago
Stenzek 6d0feff2f5
Deps: Update to 20260805 2 months ago
Stenzek e86af51c8e
Deps: Update bundled ffmpeg headers to 9.0 2 months ago
Stenzek d6d8a7be19
CDImageCue: Fix implicit truncation warning 2 months ago
Stenzek 76f01d8c9f
Misc: Fix under-allocation in sjis2utf8()
This whole thing needs to be tossed and rewritten.
2 months ago
Stenzek ecbe3c3b78
MemoryCardImage: Don't over-enumerate directory frames 2 months ago
Stenzek c07bf47d62
CDImageCue: Validate bits-per-sample for wave files 2 months ago
Stenzek 26fa2ee4a5
MetalDevice: Fix a few leaky object retains 2 months ago
Stenzek 4d700e4685
MDEC: Ensure direct FIFO writes don't overflow 2 months ago
Stenzek 18147a1758
GPUBackend: Fix possible unflushed draws with runahead enabled
Runahead splits the display update and frame submission, and another draw could come in inbetween.
2 months ago
Stenzek e95e5a0d27
FullscreenUI: Right-align achievement type badges 2 months ago
Stenzek b147f1ffd3
FIFOQueue: Zero out head/tail when size reaches zero
Try to keep the data contiguous.
2 months ago
Stenzek 97400d2d08
StateWrapper: Clamp enum values to max
Prevents going into unreachable code in some of these classes.
2 months ago