Commit Graph

53 Commits

Author SHA1 Message Date
Dr. Chat
af870999fa SPIR-V: Clear shader interface IDs between invocations. 2016-06-13 18:15:59 -05:00
Dr. Chat
5937e603d7 SPIR-V: Fix vec4 Dst 2016-06-13 15:29:07 -05:00
Dr. Chat
7ef7cc39f5 SPIR-V: Declare all inputs/outputs in OpEntryPoint 2016-06-12 11:18:00 -05:00
Dr. Chat
d1b4d61b52 SPIR-V: Use the register count from the program control register
Workaround for broken OpBitFieldUExtract on NVIDIA drivers
kRcpc/kRcpf/kRsqc/kRsqf
Fix broken ps_ usage
2016-05-22 20:01:42 -05:00
Dr. Chat
2bb52ef86b SPIR-V: WIP shader compiler / optimizations / alpha test implementation 2016-05-15 12:01:38 -05:00
Dr. Chat
9b2e2a7275 SPIR-V: Hack in OpSelectionMerge as hints to NVidia's shader compiler (TODO: Make a Shader Compiler) 2016-04-13 23:17:03 -05:00
Dr. Chat
b7f2c93d73 SPIR-V: Batch predicated instructions together into a single block.
Add Post-Translation validation.
Fix a couple of type-related typos.
2016-04-09 21:03:44 -05:00
Dr. Chat
2eca3ce9e6 Texture uploads/basic formats
Fixed swizzle one/zero mismatch
Sampler setup
Remove samplers from the descriptor set layout
2016-04-01 21:51:17 -05:00
Dr. Chat
44cffab389 SPIR-V Max4 2016-03-25 18:23:45 -05:00
Dr. Chat
7b962e59a4 SPIR-V Dst
Fix a few bugs in the translator
2016-03-20 14:21:55 -05:00
Dr. Chat
54f89825d9 SPIR-V Dp2Add/Dp3 2016-03-15 00:30:39 -05:00
Dr. Chat
4e27539709 Fix Vulkan texture drawing. 2016-03-08 17:57:04 -06:00
Dr. Chat
38094ac819 Updated local clang-format. 2016-03-02 21:17:34 -06:00
Dr. Chat
740c70f270 Scalar logc, fix log 2016-03-01 12:52:34 -06:00
Dr. Chat
48cf270724 Use spv::NoPrecision instead of DecorationInvariant
Set samplers/images as uniform constants
2016-02-27 16:21:37 -06:00
Dr. Chat
6109e0b03a Fix incorrect images/samplers definitions
ps_param_gen and fix interpolators being copied incorrectly
2016-02-25 17:41:41 -06:00
Dr. Chat
08a287d2ad Whoops 2016-02-21 22:30:31 -06:00
Dr. Chat
06d5a28615 Fix texture fetches 2016-02-21 22:27:23 -06:00
Ben Vanik
5e31c51a3d Textures are now in descriptor set 1. 2016-02-21 20:03:51 -08:00
Dr. Chat
8a29330f8c First-pass image sampling 2016-02-21 20:42:37 -06:00
Dr. Chat
2785a94fea SetpXXPush 2016-02-21 19:20:53 -06:00
Dr. Chat
9030c87386 SetpPop/SetpRstr 2016-02-21 19:20:53 -06:00
Dr. Chat
5c2b5123ac Floors/Frcs/Truncs 2016-02-21 19:20:53 -06:00
Dr. Chat
0680e451bc Exp2 2016-02-21 19:20:53 -06:00
Dr. Chat
cbac9b2f4e Use vec4 zero rather than float zero where needed 2016-02-21 19:20:53 -06:00
Dr. Chat
13049912ee Vec Log 2016-02-21 19:20:53 -06:00
Dr. Chat
1d4190af02 MaxA 2016-02-21 19:20:53 -06:00
Dr. Chat
568845e81d Dp4 2016-02-21 19:20:53 -06:00
Dr. Chat
3877afe90a MaxAsf 2016-02-21 19:20:53 -06:00
Dr. Chat
d217f7b3c3 MaxAs/SetpClr 2016-02-21 19:20:53 -06:00
Dr. Chat
fa3ca4a5d7 Short-circuit if the store has no writes. 2016-02-21 19:20:53 -06:00
Dr. Chat
d2e3b5533d Whoops 2016-02-21 19:20:53 -06:00
Dr. Chat
9b805b929e Scalar kill ops 2016-02-21 19:20:53 -06:00
Dr. Chat
e78537571f Vector kill ops 2016-02-21 19:20:53 -06:00
Dr. Chat
633746b5e4 Actually preserve pv/ps if predicate fails 2016-02-21 19:20:53 -06:00
Ben Vanik
ace895d4f3 Fixing 1/w0 correction. 2016-02-21 15:44:09 -08:00
Dr. Chat
b83b9c28a1 Fix push constants declaration 2016-02-21 13:19:08 -06:00
Dr. Chat
bd0fb81b22 Apply window scaling 2016-02-21 12:46:54 -06:00
Ben Vanik
b3faba50a3 Pushing constants. 2016-02-21 10:38:58 -08:00
Dr. Chat
71440a4137 Add code to correct vertex format
Move translated shader code to its own function
Add push constants
2016-02-21 12:06:59 -06:00
Dr. Chat
b1e56ee4e5 Vector Cndxx 2016-02-20 23:45:01 -06:00
Ben Vanik
ff373a83a4 Private->Function variables, fragment output, geometry shader tweaks. 2016-02-20 20:44:11 -08:00
Dr. Chat
2629ae4a14 Fix using incorrect result types for compares 2016-02-20 21:55:32 -06:00
Dr. Chat
ca01bb2311 ALU predicated discard 2016-02-20 21:53:22 -06:00
Dr. Chat
08a173e5ec Scalar Sxxx 2016-02-20 21:28:25 -06:00
Dr. Chat
8777d22b72 Add name information to constants
Fix Rcp/Rsq OpSelect incorrect usage
2016-02-20 19:31:28 -06:00
Ben Vanik
1d82d7bd92 For now, all 512 constants live in the same block. 2016-02-20 17:05:53 -08:00
Dr. Chat
4aff1c19a7 (WIP) SPIR-V Shader Translator 2016-02-20 18:44:37 -06:00
Ben Vanik
35e08d9428 Switching from fork to main glslang spirv builder. 2016-02-18 16:43:41 -08:00
Ben Vanik
9f52f2e819 Initial vulkan context and immediate drawer.
Extremely rough, just checking in so DrChat can snoop.
2016-02-18 16:43:41 -08:00