Commit Graph

4696 Commits

Author SHA1 Message Date
097b8730e2 Merge pull request #3513 from DanielDeGiorgio 2026-11-22 17:02:25 -05:00
84c29700da Merge pull request #3494 from kotorvr 2026-11-22 17:02:18 -05:00
0a53e623a8 Merge pull request #3488 from kotorvr
# Conflicts:
#	runtime/README.md
2026-11-22 17:02:16 -05:00
5995f7ae61 Merge pull request #3477 from mrb-eel
# Conflicts:
#	docs/d3d12_vulkan.md
2026-11-22 17:02:11 -05:00
a8e0a3c756 Merge pull request #3461 from ChatGPT (AI-assisted) 2026-11-22 17:02:08 -05:00
53129dc89a Runtime: RTVs in a castable-format list's other channel order
A castable-format list may name an R8G8B8A8 texture's B8G8R8A8 formats,
or the reverse, or cross B8G8R8X8 and B8G8R8A8. WARP and AMD's D3D12
driver store a clear or a draw through an RTV in a listed format in the
view's channel order and encoding: an R8G8B8A8 texture cleared to
(0.2, 0.4, 0.6, 0.25) through a B8G8R8A8 RTV holds 153, 102, 51, 64.
CreateRenderTargetView refused such an RTV on an R8G8B8A8 texture, so
the clear failed Close and draws were dropped, and a typed B8G8R8A8
texture's RTV kept the image's format whatever the view named, so its
clears came out in BGRA order and without the sRGB encoding.

An RGBA8 or BGRA8 UNORM/SRGB texture (B8G8R8X8 included) now gets an
RTV in another of these formats when its list, as the application gave
it, names that format, and color_view_format lets a castable image's
clear cross between the two channel orders. Draws already used the
PSO's format for the attachment view. A format the list doesn't name
stays refused; a typed B8G8R8A8 texture without a list keeps ignoring
the RTV's format, as before.

d3d12_clear_test compares 8 such textures with WARP in full and
rectangle clears (the X byte of an X8 view left out: WARP and AMD write
different values there) and checks that 3 unlisted formats get no RTV;
d3d12_draw_test draws through the same views; typeless_rtv_test checks
the replay's crossing and its refusals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:02:04 -03:00
810ab5da43 Merge pull request #3446 from Moaaz Gewili 2026-11-22 17:02:04 -05:00
c36370a253 Merge pull request #3408 from Dominik 2026-11-22 17:01:53 -05:00
cf82fc26fd Merge pull request #3401 from 0xTehuti 2026-11-22 17:01:52 -05:00
e34b0c7b78 Merge current upstream main into sampled descriptor indexing fix 2026-11-23 08:01:46 +10:00
d5000c56e4 Merge pull request #3363 from romainveurrier 2026-11-22 17:01:41 -05:00
609d5f1052 Merge pull request #3360 from Alex Arenas 2026-11-22 17:01:40 -05:00
150bcde820 Merge pull request #3358 from kapitche 2026-11-22 17:01:39 -05:00
db85b6ebb6 Merge pull request #3351 from ICUMADETHIS 2026-11-22 17:01:36 -05:00
29f6a3ecb2 Merge pull request #3348 from admin 2026-11-22 17:01:34 -05:00
e914437279 Merge pull request #3347 from whattheflop 2026-11-22 17:01:33 -05:00
87460bdaec Merge pull request #3340 from biglill 2026-11-22 17:01:31 -05:00
0eabb4586a Merge pull request #3310 from HDFreitas 2026-11-22 17:01:18 -05:00
fdf73f6696 Runtime: record each distinct XMemAlloc/XMemFree attribute word in --trace
xmem.cpp ignores the attributes argument, and the bits of the Scarlett
XALLOC_ATTRIBUTES word are not known yet. With gta6rt --trace FILE, the first
XMemAlloc and the first XMemFree for each distinct raw attribute word now
write an "xmem_attributes" event (api, the word, the size for an allocation,
the caller as module+RVA), so the bits can be decoded from a real run without
logging every allocation. Off: one relaxed load per call.

xmem_test opens a trace and checks one event per word and API, the size of the
first call, a caller on every event, and nothing recorded while the trace is
off. README.md documents the event.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:01:17 +01:00
3c0aa65071 Merge pull request #3280 from kapitche 2026-11-22 17:01:13 -05:00
06393b23cd Merge pull request #3164 from mrp1no 2026-11-22 17:00:46 -05:00
1466b9bd21 Merge pull request #3058 from Vonsek 2026-11-22 17:00:28 -05:00
d3ec646a7d Merge pull request #3023 from Jolymmiles 2026-11-22 17:00:25 -05:00
8860b36ebf Merge pull request #3004 from Moaaz Gewili
# Conflicts:
#	docs/design.md
#	docs/testing.md
2026-11-22 17:00:22 -05:00
5bed65414b Merge pull request #2965 from Vonsek 2026-11-22 17:00:15 -05:00
04361d0a39 Translator: --fma exact, a single-rounded f32 FMA without VK_KHR_shader_fma (SHADER-497) 2026-11-23 00:00:12 +02:00
ae5e5a5080 Merge pull request #2887 from Rafael 2026-11-22 17:00:01 -05:00
efa9dc1c5c Merge pull request #2886 from Jolymmiles
# Conflicts:
#	docs/testing.md
2026-11-22 17:00:01 -05:00
40cf3de8ab Merge pull request #2864 from mrp1no 2026-11-22 16:59:55 -05:00
fae158c0b1 Merge pull request #2847 from Wasler 2026-11-22 16:59:53 -05:00
6b38929b10 Merge pull request #2823 from jsthope 2026-11-22 16:59:50 -05:00
4ec7c06c69 Merge pull request #2697 from Vonsek 2026-11-22 16:59:35 -05:00
d42f8b4631 Merge pull request #2674 from Linnard Alex Brown Jr.
# Conflicts:
#	docs/design.md
2026-11-22 16:59:33 -05:00
fdd6ec2d74 Merge pull request #2626 from throny 2026-11-22 16:59:27 -05:00
aa0ac2691b Merge pull request #2591 from 0xTehuti 2026-11-22 16:59:26 -05:00
ccd190606c Merge pull request #2562 from justr4mzi 2026-11-22 16:59:25 -05:00
0fa95b983e d3d12: ArraySize -1 in 2D-array RTVs and DSVs is every slice from the first on
CreateRenderTargetView and CreateDepthStencilView stored ArraySize -1 of a
TEXTURE2DARRAY or TEXTURE2DMSARRAY view as the layer count, so the view was
nulled (typeless and castable RGBA8) or the list was refused at replay. The
host accepts it and clears the remaining slices. Resolve it at creation;
out-of-range views are refused as before. d3d12_view_slices_test compares
clears through such views with the host on the same adapter and WARP.

d3d12_typeless_rtv_test listed {first slice 1, ArraySize -1} on a four-slice
texture among the views the layer must reject; the host accepts that view, so
the entry now uses first slice 4, which the host refuses too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 23:59:14 +02:00
5fd0db925d Merge pull request #2420 from Sc4ros 2026-11-22 16:59:14 -05:00
9dc0287ffa Merge pull request #2401 from Sc4ros 2026-11-22 16:59:13 -05:00
b69e3a4898 Merge pull request #2297 from Ewann 2026-11-22 16:59:09 -05:00
fc0cbecfda Merge pull request #2218 from Dominik 2026-11-22 16:59:05 -05:00
c3b97ad0ef Merge pull request #2167 from Alex Arenas 2026-11-22 16:59:04 -05:00
cf4a8752b8 Merge pull request #2152 from mz 2026-11-22 16:59:04 -05:00
0ec32fe027 Merge pull request #1938 from undeadhuman37 2026-11-22 16:58:55 -05:00
d3a352f9ac Merge pull request #655 from ismailchaka1 2026-11-22 16:58:44 -05:00
63cb07c069 Merge upstream main and preserve Vulkan runtime behavior 2026-11-22 18:58:22 -03:00
42e20d695a Merge pull request #367 from mrb-eel 2026-11-22 16:56:52 -05:00
4c52ce27a6 Seven fixes from an outside contributor (sent as patches, applied without the author's name)
- rdna2spirv: declare each packed vertex input register once; a register whose elements disagree on the component
  type is refused (SHADER-644).
- runtime: a title's VirtualAlloc drops the console's MEM_GRAPHICS / MEM_TITLE type bits the host rejects (RT-217).
- runtime: XPersistentLocalStorageImpl is served from <overlay>\persistent with the package's 2048 MB quota
  (RT-219; layout from the public docs, not measured in a caller).
- runtime: G:\ names the package and T:\ a scratch folder in the overlay; paths under the configured folders and
  every path with no folders configured stay host paths (RT-218).
- winhttp_offline: header blocks and timeouts the host WinHTTP rejects are rejected the same way.
- cfg_structure.run: a limit of zero or less runs no blocks.
- shader_meta: an s_movk_i32 with a register operand and a float immediate beyond float32 are left unknown instead
  of raising.

Each comes with a test that fails on the old code. Conflicts with main resolved here (internal_dir() hides T:'s
folder; both file_system_test blocks kept).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:55:46 -05:00
c0b821cda7 file_system: CopyFile2 checks its parameter block before the destination
Review on #3655 (kacper-serewis, daemosofchaos, on Windows 11):

- A parameter block shorter than COPYFILE2_EXTENDED_PARAMETERS (dwSize
  0, 4, 31) made the fallback copy and return S_OK, where the host's
  CopyFile2 returns E_INVALIDARG and writes nothing. Both paths now
  check it first, before copy_paths prepares the destination.
- The fallback silently dropped COPY_FILE_SKIP_ALTERNATE_STREAMS and
  copied the stream. Its flags are now sorted: passed on (the ones both
  calls define), dropped (requests that leave the contents as
  CopyFileExW writes them: no offload, compressed traffic, sparse copy,
  ...), or refused with ERROR_NOT_SUPPORTED before anything is written
  (SKIP_ALTERNATE_STREAMS, DIRECTORY, OPEN_AND_COPY_REPARSE_POINT,
  IGNORE_SOURCE_ENCRYPTION, unknown bits, a longer V2 block).
- A cancel flag already set is answered by the fallback itself, since
  Wine 9's CopyFileExW doesn't read it.

rt::fs::force_copy_file2_fallback lets the test run the fallback on
Windows, where the host has CopyFile2 (Maraco91 noted it couldn't be
reached there). file_system_test runs its CopyFile2 checks both ways:
no block, short blocks, fail-if-exists with a hint flag, a set cancel
flag, and in the fallback the refused flags and block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GN11jcpJWD4phrXJyDgED6
2026-11-22 21:54:00 +00:00
db6749ccee Tests: validate explicit host adapter selections and long environment values 2026-11-22 23:53:14 +02:00