Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Greg Roth 754e99b405
Revert "Optimize compile times by not skipping allocas (#3168)" (#3183)
This reverts commit 9459577e8f.
2020-10-05 16:23:12 -07:00
Greg Roth 9459577e8f
Optimize compile times by not skipping allocas (#3168)
Instead of skipping past allocas whenever inserting a new insruction,
which ate up a lot of compilation time, they are inserted at the default
insertion point.

The result is that allocas that would have coallesced just after the
global load an input loads are dispersed throughout the commands. So as
part of dxil finalization, the allocas are moved to the beginning of the
entry block of each function. This results in some minor changes to a
couple tests due to the allocas preceding the loads.
2020-09-29 18:11:28 -07:00
Greg Roth 29759a8942
Fix remaining Clang warnings (#3008)
Many of these take the form of removing unused member variables and
unused functions. Where they were truly unused, I removed them. Where
they were only used in asserts, I hid them for the release builds. Where
the code in question was original to LLVM, I didn't remove so much as
comment out the offending code. In most cases these changes are
counterparts to already excluded code for HLSL.

A few cases concern indexing or type matches. Where relevant, I lifted
the same solutions in the current source of the llvm project.

I altered the fix made recently to LinkAllPasses.h. Instead of just
disabling the warning, I used the temporary variables that the current
llvm project uses to avoid having to cast null pointers.
2020-06-29 19:24:52 -07:00
Jeff Noyle 36ecb43206
Move debug counter out of harm's way (#2887)
Previously, the counter-of-instrumentation-bytes-written for the shader debug pass was at offset zero into the UAV. This presented problems when overflow/wraparound occurred. This change moves the counter up into the unused overflow space in the UAV. The counter for the mesh shader output pass is moved to the same place for simplicity.
PIX bug # 26371771.
2020-05-19 09:21:30 -07:00
Jeff Noyle be3f3fa2ee
User/jeffnn/pix dontoverwriteoffsetcounter (#2729)
Fix for overflow case
Overloads for StoreVertexOutput
Reformat to remove curly-on-end
2020-03-02 09:23:26 -08:00
Jeff Noyle eb33030b03
Pix mesh shader output instrumentation (#2709)
This is a pass for PIX that adds instructions to write mesh shader output (vertices and indices) to a UAV for later ingestion by PIX in order to present a view of that output.
2020-02-21 10:25:34 -08:00