mesa/src/asahi
Alyssa Rosenzweig cbd9cb04cf agx: fix load_first_vertex
base vertex is GL, first vertex is VK. because we missed this check, VK (but not
GL) shaders using first vertex (but not base instance) would not get that flag
set and so hk wouldn't bother uploading the draw parameters, so first_vertex
would read garbage.

because vertex ID is defined differently between the Khronos and Microsoft APIs,
every complex DXVK vertex shader will implement vertex ID with a subtraction of
first vertex.

forcing geometry shaders worked around the bug, because IIRC geometry shaders
also force the draw parameter upload path for $REASONS. maybe

disabling preambles changed symptoms simply because the uniform file looked
different, and we were reading uninitialized garbage regardless writing stuff in
preambles would maybe change the garbage for other draws or something.  (Not
sure on the details but the physical uniform registers I guess get reused over
the lifetime of a shader core and never zero initialized) So we were reading
uninitialized garbage and yeah everything blows up

Anyway. I just wasted too much of my life on this.

This single line of code fixes rendering in every DX11 game. that's probably not
an exaggeration.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
2024-10-05 18:30:13 +00:00
..
clc asahi/clc: add bindless image intrinsics 2024-09-02 23:27:15 +00:00
compiler agx: fix load_first_vertex 2024-10-05 18:30:13 +00:00
drm-shim asahi: Update to UAPI 10011 2024-08-12 18:35:47 -04:00
genxml asahi/genxml: add nicer error checking 2024-10-05 18:30:12 +00:00
layout ail: pull in DRM modifier helper 2024-10-05 18:30:10 +00:00
lib asahi: move sample mask to r1l 2024-10-05 18:30:12 +00:00
vulkan hk: add helper to dump draw 2024-10-05 18:30:13 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
.editorconfig asahi: Add .editorconfig for CL files 2024-01-10 08:44:37 -04:00
meson.build ail: swallow up formats 2024-09-02 23:27:14 +00:00