libs/vkd3d-shader: Allow input declarations with no write mask.

This commit is contained in:
Józef Kucia 2017-06-29 09:02:50 +02:00
parent 6dbdb872fc
commit 4de9405a7b

View File

@ -1525,6 +1525,10 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi
SpvStorageClass storage_class;
component_count = vkd3d_write_mask_component_count(dst->write_mask);
/* vThreadIDInGroupFlattened is declared with no write mask in shader
* bytecode generated by fxc. */
if (!dst->write_mask)
component_count = 1;
if (!(input_component_count = vkd3d_dxbc_compiler_get_sysval_component_count(sysval)))
input_component_count = component_count;