mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	vkd3d-shader/spirv: Apply 'Patch' decorations to builtin patch constant inputs.
Prevents a crash in radv when such inputs are present. Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
		
				
					committed by
					
						 Alexandre Julliard
						Alexandre Julliard
					
				
			
			
				
	
			
			
			
						parent
						
							312de24b9a
						
					
				
				
					commit
					9a1f6c7daf
				
			| @@ -4582,6 +4582,8 @@ static uint32_t vkd3d_dxbc_compiler_emit_input(struct vkd3d_dxbc_compiler *compi | |||||||
|         if (builtin) |         if (builtin) | ||||||
|         { |         { | ||||||
|             input_id = vkd3d_dxbc_compiler_emit_builtin_variable(compiler, builtin, storage_class, array_size); |             input_id = vkd3d_dxbc_compiler_emit_builtin_variable(compiler, builtin, storage_class, array_size); | ||||||
|  |             if (reg->type == VKD3DSPR_PATCHCONST) | ||||||
|  |                 vkd3d_spirv_build_op_decorate(builder, input_id, SpvDecorationPatch, NULL, 0); | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user