https://bugs.winehq.org/show_bug.cgi?id=54484
Bug ID: 54484
Summary: Comma-separated variable declaration lists do no
handle dependent initializers within the same list
Product: vkd3d
Version: 1.6
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: bunglehead(a)gmail.com
Distribution: ---
Created attachment 74035
--> https://bugs.winehq.org/attachment.cgi?id=74035
test
See attached test. Currently it produces an error: E5005: Identifier "i" is not
declared.
This happens because earlier declared variables are not declared within the
context, so when occurred in following initializers they are treated as
NEW_IDENTIFIER, instead of VAR_IDENTIFIER. My understanding is that
declarations are added to the context after whole list is processed, and that
probably should change.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54647
Bug ID: 54647
Summary: Call of Juarez needs "log2" handling
Product: vkd3d
Version: 1.6
Hardware: x86-64
OS: Linux
Status: NEW
Severity: minor
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: andrey.goosev(a)gmail.com
Distribution: ---
0718:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4.
0718:err:d3dcompiler:D3DCompile2 Shader log:
0718:err:d3dcompiler:D3DCompile2 <anonymous>:19:16: W5300: Implicit
truncation of vector type.
0718:err:d3dcompiler:D3DCompile2 <anonymous>:21:19: E5005: Function "log2"
is not defined.
1.6-195-g2880be64
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54680
Bug ID: 54680
Summary: NewoAsteroids played with Dolphin emulator needs SM1
'round' support
Product: vkd3d
Version: 1.6
Hardware: x86-64
URL: https://dl.dolphin-emu.org/releases/dolphin-3.0-x64.ex
e
OS: Linux
Status: NEW
Keywords: download
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: gijsvrm(a)gmail.com
Depends on: 34242
Distribution: ---
0110:err:d3dcompiler:D3DCompile2 <anonymous>:12:10: E5017: Aborting due to
not yet implemented feature: SM1 "round" expression.
NewoAsteroids: http://wiibrew.org/wiki/Newo_Asteroids
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54700
Bug ID: 54700
Summary: Conspiracy's Clean Slate 64K demo crashes due to
missing 'fmod' handling
Product: vkd3d
Version: 1.6
Hardware: x86-64
URL: https://web.archive.org/web/20210807072016/https://con
spiracy.hu/files/cns%21cns-AMDfix.zip
OS: Linux
Status: NEW
Keywords: download
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: gijsvrm(a)gmail.com
Depends on: 54679
Distribution: ---
0024:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4.
0024:err:d3dcompiler:D3DCompile2 Shader log:
0024:err:d3dcompiler:D3DCompile2 <anonymous>:1:302: E5005: Function "fmod"
is not defined.
0024:err:d3dcompiler:D3DCompile2
wine: Unhandled page fault on read access to 00000000 at address 00607E90
(thread 0024), starting debugger...
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54708
Bug ID: 54708
Summary: Renegade Ops needs Load() sampling index parameter
Product: vkd3d
Version: 1.6
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: andrey.goosev(a)gmail.com
Distribution: ---
0bb4:trace:d3dcompiler:D3DCompile data 0D67DEE0, data_size 370, filename
(null), defines 00000000, include 00000000, entrypoint "main", target "ps_4_0",
sflags 0, eflags 0, shader 0D67DEDC, error_messages 0D67DED8.
0bb4:trace:d3dcompiler:D3DCompile2 data 0D67DEE0, data_size 370, filename
(null), macros 00000000, include 00000000, entry_point "main", profile
"ps_4_0", flags 0, effect_flags 0, secondary_flags 0, secondary_data 00000000,
secondary_data_size 0, shader_blob 0D67DEDC, messages_blob 0D67DED8.
0bb4:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -5.
0bb4:err:d3dcompiler:D3DCompile2 Shader log:
0bb4:err:d3dcompiler:D3DCompile2 <anonymous>:6:121: E5017: Aborting due to
not yet implemented feature: Load() sampling index parameter.
0bb4:err:d3dcompiler:D3DCompile2 <anonymous>:6:149: E5000: syntax error,
unexpected '['
1.6-207-g4110f1e5
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54736
Bug ID: 54736
Summary: MojoShader HLSL requires ternary operators
Product: vkd3d
Version: 1.7
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: flibitijibibo(a)gmail.com
Distribution: ---
A quick note before the report: Many thanks to the vkd3d team for their work on
the HLSL compiler, we have been using it as our Linux-native HLSL compiler for
FNA and as of 1.7 we have commercial games running with it! The FNA community
is very grateful for this work.
In testing games against the latest compiler, we found that one notable
hlsl_fixme was ternary operators:
https://gitlab.winehq.org/wine/vkd3d/-/blob/57d92a15cf93d9448f2deb91a8614f9…
MojoShader, our method for converting D3D9-era DXBC to other shader formats,
uses ternaries in a number of ways:
- cnd/cmp operations
- rsq/rcp operations (have to handle the division-by-zero case)
- Translating SV_IsFrontFace to an equivalent VFACE value
This can be tested with the Linux-native version of Terraria on Steam, using
the following process:
1. Download Terraria from the Steam client
2. Download https://fna.flibitijibibo.com/archive/fnalibs.tar.bz2, copy
lib64/libFNA3D.so.0 into Terraria's lib64 folder
3. Copy the following libraries into Terraria's lib64 folder:
- libdxvk_d3d11.so
- libdxvk_dxgi.so
- libvkd3d.so.1
- libvkd3d-shader.so.1
- libvkd3d-utils.so.1
As of writing, DXVK currently requires the latest development builds:
https://github.com/doitsujin/dxvk/actions/workflows/artifacts.yml?query=bra…
3. Run Terraria with /gldevice:D3D11 as a launch argument
With the vanilla binaries, you should be able to see the title screen and main
menu! However, the in-game screen will be mostly black, since compiling the
shaders with ternaries will fail. (Setting a breakpoint on hlsl_fixme is the
easiest way to catch the issue.)
When we intentionally break MojoShader to avoid ternaries, the game appears to
be okay, ignoring the whole "shader output is obviously incorrect" part:
https://twitter.com/flibitijibibo/status/1640136828433883139
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54777
Bug ID: 54777
Summary: MojoShader HLSL requires 'any' intrinsic, for TEXKILL
Product: vkd3d
Version: 1.7
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: flibitijibibo(a)gmail.com
Distribution: ---
Created attachment 74274
--> https://bugs.winehq.org/attachment.cgi?id=74274
Random TMNT Pixel Shader
From MSDN:
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hl…
Attached is some sample shader output from TMNT: Shredder's Revenge.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54786
Bug ID: 54786
Summary: Lethe - Episode One needs 'log' support
Product: vkd3d
Version: 1.7
Hardware: x86-64
OS: Linux
Status: NEW
Severity: minor
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: andrey.goosev(a)gmail.com
Distribution: ---
0254:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -5.
0254:err:d3dcompiler:D3DCompile2 Shader log:
0254:err:d3dcompiler:D3DCompile2 <anonymous>:336:8: E5017: Aborting due to
not yet implemented feature: Ternary operator.
0254:err:d3dcompiler:D3DCompile2 <anonymous>:372:8: E5017: Aborting due to
not yet implemented feature: Prioritize between multiple compatible function
overloads.
0254:err:d3dcompiler:D3DCompile2 <anonymous>:372:1: W5300: Implicit
truncation of vector type.
0254:err:d3dcompiler:D3DCompile2 <anonymous>:529:15: E5005: Function "log"
is not defined.
1.7-27-gd6d9aab3
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54826
Bug ID: 54826
Summary: Add support for sign() intrinsic
Product: vkd3d
Version: 1.7
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: flibitijibibo(a)gmail.com
Distribution: ---
Created attachment 74329
--> https://bugs.winehq.org/attachment.cgi?id=74329
sign() unit tests
This is used by MojoShader for the SGN and MOVA instructions.
I don't have a real-world test, but for something like this I imagine the unit
tests would be enough to work with, so I've attached them here.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=54827
Bug ID: 54827
Summary: Add support for ddx(), ddy() intrinsics
Product: vkd3d
Version: 1.7
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: hlsl
Assignee: wine-bugs(a)winehq.org
Reporter: flibitijibibo(a)gmail.com
Distribution: ---
As you might expect, these are used by MojoShader for DSX and DSY.
Unlike the other reports I don't have a test immediately available since I
don't think I've run into this one before, but I imagine this isn't much more
than a direct translation to a common binary operation.
This uncompiled effect file is the closest thing I have to a real-world case:
https://github.com/sq/Libraries/blob/master/Squared/RenderLib/Shaders/Gauss…
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.