[PATCH vkd3d 5/5] tests: Test arithmetic int operations without constant operands.

Giovanni Mascellani gmascellani at codeweavers.com
Fri Jul 1 03:25:37 CDT 2022


Hi,

Il 01/07/22 06:43, Zebediah Figura ha scritto:
> Passing "uniform int" requires sm4 (well, sort of), but the actual 
> operations should be possible with sm1. Perhaps pass the inputs as 
> floats and then cast them to int variables before performing arithmetic?

The main point of that test is to run the code that does some int 
operation lowering (division, modulus and absolute value; well, there is 
not absolute value, I'll add it), patches still to be contributed. SM4 
doesn't represent those operations directly and rather requires some 
more complicated code to emulate them. I guess this doesn't happen in 
SM1, given that those operations are silently converted to float anyway, 
so I didn't consider it a priority anyway. But I can do what you suggested.

Giovanni.



More information about the wine-devel mailing list