Commit Graph
305 Commits
Author SHA1 Message Date
Igor Shaposhnik 25fe522423 [glsl-out] Properly write array type 2021-03-10 15:17:07 -05:00
Dzmitry Malyshau f5ee791912 More error information for uniformity analysis 2021-03-09 22:54:03 -05:00
Dzmitry Malyshau e7c1415ca4 [spv-in] really consider variables as pointers 2021-03-09 10:10:10 -05:00
Dzmitry Malyshau 13d7a353e0 Switch entry points from map to a vec 2021-03-07 12:11:49 -05:00
Dzmitry Malyshau dd823a4b84 Enforce pointer semantics at the type level. 2021-03-06 11:01:14 -05:00
Igor Shaposhnik d1c47d1705 [glsl-out] Set precision for image type 2021-03-05 23:10:16 -05:00
Igor Shaposhnik 50e5904add [glsl-out] Fix statement indentation 2021-03-04 10:03:39 -05:00
Joshua Groves 667f01ce17 [wgsl-in] Add descriptions for more errors 2021-03-04 00:10:58 -05:00
Dzmitry Malyshau 3fcc0759ed GraphViz backend 2021-03-03 21:20:12 -05:00
Dzmitry Malyshau 89e37d6e90 Explicitly emit expressions by Statement::Emit 2021-03-02 21:50:06 -05:00
Igor Shaposhnik 6e37f336bd [glsl-out] Set workgroup_size for compute shaders 2021-03-02 14:26:01 -05:00
Dzmitry Malyshau 69bf7f5f17 Miscellaneous fixes 2021-03-01 09:35:29 -05:00
Matúš Talčík 34c549d49d spv-in flow: fix loop 2021-03-01 09:27:44 -05:00
Joshua Groves bb7105387d [wgsl-in] Use codespan to report errors 2021-02-28 00:07:37 -05:00
Dzmitry Malyshau 0cefc1c46c Remove mutation from the Call expression 2021-02-22 23:37:26 -05:00
Dzmitry Malyshau 694a00afcb [spv-out] optimize if/else branching 2021-02-22 10:11:36 -05:00
Joshua Groves ce84b1d1c0 [wgsl] Add parser error snapshot 2021-02-22 01:17:15 -05:00
Dzmitry Malyshau 99c1add358 [msl] fake bindings 2021-02-19 19:20:21 -05:00
João Capucho 19e7f456c4 Remove the call graph processor
Uses the GlobalUse in glsl-out to check for function availability
2021-02-18 11:43:18 -05:00
Dzmitry Malyshau 5f21cf360f Refactor snapshot testing to include some IR 2021-02-18 10:19:25 -05:00
Dzmitry Malyshau 8a0382a89d Move global use flags into FunctionInfo 2021-02-17 15:37:37 -05:00
Pelle Johnsen 408002815f [glsl-in] Multi entry points - address comments 2021-02-17 10:05:40 -05:00
Pelle Johnsen 1861fca4ba [glsl-in] Support multiple entrypoints 2021-02-17 10:05:40 -05:00
Dzmitry Malyshau 6d0c608626 [glsl-out] use existing Analysis instead of implementing Visitor 2021-02-15 11:13:11 -05:00
Dzmitry Malyshau ad423124c0 Support constants in the naming processor 2021-02-14 20:43:50 -05:00
Dzmitry Malyshau 61d711b58f Remove the Header from IR 2021-02-14 20:23:31 -05:00
Systemcluster dcd269782a [wgsl] restrict type casts to matching container types 2021-02-14 11:56:49 -05:00
Systemcluster 5de69f7276 Specify line endings in ron snapshot tests 2021-02-14 11:29:25 -05:00
Dzmitry Malyshau c1fc5d6424 [msl] re-use expression results based on the analysis 2021-02-14 01:19:15 -05:00
Dzmitry Malyshau eae40383d0 Add uniform control flow analysis to the validator 2021-02-14 01:19:15 -05:00
Dzmitry Malyshau 8183f4ff6f [spv-out] annotate function and constant names 2021-02-13 19:37:54 -05:00
Dzmitry Malyshau 38f3c4eb19 [spv-in] support dynamic vector insert/extract 2021-02-11 10:58:52 -05:00
Dzmitry Malyshau 20227e7c87 [msl] pass-through global resources in arguments 2021-02-10 23:22:14 -05:00
Dzmitry Malyshau 3aa11838c7 Refactor the global usage code into a separate module, fix inheriting from the callees 2021-02-10 11:02:56 -05:00
Dzmitry Malyshau 5b94ecd9b2 Add a snapshot for parsing spirv input 2021-02-08 15:59:47 -05:00
Dzmitry Malyshau 10867879d4 [spv-in] support projection sampling and sampling from arrays 2021-02-08 11:31:45 -05:00
Dzmitry Malyshau 680fda9e1b [spv-out] fix initial ID 0 and 1 assignments 2021-02-08 00:20:37 -05:00
Joshua Groves 31be7099f2 Move snapshot inputs and outputs around 2021-02-07 18:16:26 -05:00
Dzmitry Malyshau 6f50ca6bee Push constant support 2021-02-07 11:54:56 -05:00
Dzmitry Malyshau 11a3ed9837 WGSL support for void function calls 2021-02-06 10:42:54 -05:00
Dzmitry Malyshau d949d58f7b Statement for void function call 2021-02-06 10:42:54 -05:00
Dzmitry Malyshau c496c05ba4 Makefile commands for native shader validation 2021-02-05 14:04:02 -05:00
Dzmitry Malyshau e05baa2889 [spv] put NonWritable on buffer variable itself (#405) 2021-02-01 20:17:50 -05:00
Dzmitry Malyshau 5def021b6e [spv] replace the internal type inferrence with the typifier (#403)
Also, fix the Typifier's handling of logical operations.
See https://github.com/gfx-rs/naga/pull/404 for v0.3 branch.
2021-02-01 09:33:28 -05:00
Dzmitry Malyshau 6138e4ddd3 [spv] fix block decoration on nested structs 2021-01-31 18:27:08 -05:00
Dzmitry Malyshau cb36c642ea [wgsl] refactor constants processing, add support for array sizes 2021-01-31 18:27:08 -05:00
Dzmitry Malyshau 7c6835bdbc [spv] fix support for fixed-size array, refactor constant writes 2021-01-31 18:27:08 -05:00
Dzmitry Malyshau 1ec4c2b0d0 [spv] implement NonReadable/NonWritable decorations 2021-01-31 18:27:08 -05:00
Dzmitry Malyshau 15b629b750 [spv] put ColMajor on the struct member 2021-01-31 18:27:08 -05:00
Dzmitry Malyshau 0bbeec7d55 Add shadow snapshot shader 2021-01-30 15:14:38 +01:00