vkd3d/libs
Giovanni Mascellani 9777c8bc65 vkd3d-shader/spirv: Do not reallocate the SPIR-V program.
I ran the compilation of ~1000 DXBC-TPF shaders randomly taken from
my collection and measured the performance using callgrind and the
kcachegrind "cycle count" estimation.

BEFORE:
 * 1,846,641,596 cycles
 * 1,845,635,336 cycles
 * 1,841,335,225 cycles

AFTER:
 * 1,764,035,136 cycles
 * 1,767,948,767 cycles
 * 1,773,927,734 cycles

So callgrind would estimate a 3.6% improvement at least.

The counterpoint is that the caller might get an allocation that
is potentially bigger than necessary. I would expect that allocation
to be rather short-lived anyway, so that's probably not a problem.
2024-09-20 17:14:49 +02:00
..
vkd3d vkd3d: Implement d3d12_command_list_OMSetDepthBounds(). 2024-09-11 14:53:33 +02:00
vkd3d-common vkd3d-common: Replace assert() with VKD3D_ASSERT(). 2024-08-13 21:20:28 +02:00
vkd3d-shader vkd3d-shader/spirv: Do not reallocate the SPIR-V program. 2024-09-20 17:14:49 +02:00
vkd3d-utils vkd3d-utils: Do not emit implicit truncation warnings from D3DCompile2VKD3D() before version 42. 2024-09-03 15:07:36 +02:00
.gitignore libs/vkd3d: Trace build version. 2018-06-27 22:43:49 +02:00