You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just debugged a wrong shader. Root cause was uninitialized memory of a instruction. I just happened that one operator of an instruction was an input register and its special name was by chance 7 (index id) which resulted in wrong output.
A memset(psInst, 0, sizeof(Instruction) * ui32ShaderLength); after the psInst = hlslcc_malloc(sizeof(Instruction) * ui32ShaderLength); in decode.c (1376) got rid of it.
The text was updated successfully, but these errors were encountered:
Hi,
just debugged a wrong shader. Root cause was uninitialized memory of a instruction. I just happened that one operator of an instruction was an input register and its special name was by chance 7 (index id) which resulted in wrong output.
A
memset(psInst, 0, sizeof(Instruction) * ui32ShaderLength);
after thepsInst = hlslcc_malloc(sizeof(Instruction) * ui32ShaderLength);
in decode.c (1376) got rid of it.The text was updated successfully, but these errors were encountered: