1
1
Fork 0
forked from suyu/suyu
suyu/CMakeModules
ReinUsesLisp 4e35177e23 shader_ir: Implement VOTE
Implement VOTE using Nvidia's intrinsics. Documentation about these can
be found here
https://developer.nvidia.com/reading-between-threads-shader-intrinsics

Instead of using portable ARB instructions I opted to use Nvidia
intrinsics because these are the closest we have to how Tegra X1
hardware renders.

To stub VOTE on non-Nvidia drivers (including nouveau) this commit
simulates a GPU with a warp size of one, returning what is meaningful
for the instruction being emulated:

* anyThreadNV(value) -> value
* allThreadsNV(value) -> value
* allThreadsEqualNV(value) -> true

ballotARB, also known as "uint64_t(activeThreadsNV())", emits

VOTE.ANY Rd, PT, PT;

on nouveau's compiler. This doesn't match exactly to Nvidia's code

VOTE.ALL Rd, PT, PT;

Which is emulated with activeThreadsNV() by this commit. In theory this
shouldn't really matter since .ANY, .ALL and .EQ affect the predicates
(set to PT on those cases) and not the registers.
2019-08-21 14:50:38 -03:00
..
CopyYuzuQt5Deps.cmake QT Frontend: Add a Loading screen with progressbar 2019-01-19 23:34:03 -07:00
CopyYuzuSDLDeps.cmake Revert "Use Ninja for MSVC AppVeyor builds" (#584) 2018-06-23 03:17:32 -04:00
CopyYuzuUnicornDeps.cmake Revert "Use Ninja for MSVC AppVeyor builds" (#584) 2018-06-23 03:17:32 -04:00
DownloadExternals.cmake DownloadExternals: Use yuzu repo. 2018-01-04 00:12:18 -05:00
GenerateSCMRev.cmake shader_ir: Implement VOTE 2019-08-21 14:50:38 -03:00
MinGWCross.cmake Update MinGWCross.cmake to lowercase 2018-09-19 14:22:14 -04:00