Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange ISA dump results in offline dx11 mode #102

Open
aras-p opened this issue Dec 15, 2022 · 2 comments
Open

Strange ISA dump results in offline dx11 mode #102

aras-p opened this issue Dec 15, 2022 · 2 comments

Comments

@aras-p
Copy link

aras-p commented Dec 15, 2022

I'm trying to optimize some DX11 shader bits on a machine that does not have AMD GPU nor a driver installed. Getting really strange results, as if a bunch of shader code is not really used at all. I can reproduce that even with tiny shaders, using currently latest (2.7) RGA:

// test.hlsl
float4 vs(float4 pos : POSITION) : SV_POSITION
{
    return sqrt(pos);
}

and a command line like: rga-windows-x64-2.7\rga.exe -s dx11 -p vs_5_0 -f vs -c gfx900 --isa out.txt test.hlsl produces these relevant bits in the output:

  v_mov_b32     v0, 0
  v_mov_b32     v1, 1.0
  exp           pos0, v0, v0, v0, v1 done

It's as if a shader is actually outputting (0,0,0,1). The same happens with other -c arguments, e.g. gfx1100 or gfx1030.

@AmitBM
Copy link
Contributor

AmitBM commented Dec 15, 2022

Hi @aras-p,

Thanks for reporting this issue - we will look into this.

@AmitBM
Copy link
Contributor

AmitBM commented Dec 16, 2022

Hi @aras-p,

We updated the RGA 2.7 Windows release archive with a fix and updated the release notes accordingly.
Please note that gfx1100 is not yet supported as a target in DX11 mode - this will be addressed in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants