mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-24 18:33:36 +00:00 
			
		
		
		
	Fix buffer updates going to the wrong cmd buffer if barriers were 0
From what I could see only SSAO & SSIL were affected when they both
call:
int zero[1] = { 0 };
RD::get_singleton()->buffer_update(ssao.importance_map_load_counter, 0,
sizeof(uint32_t), &zero, 0);
int zero[1] = { 0 };
RD::get_singleton()->buffer_update(ssil.importance_map_load_counter, 0,
sizeof(uint32_t), &zero, 0);
Also documented what setup_command_buffer & draw_command_buffer are for.
			
			
This commit is contained in:
		
							parent
							
								
									f71f4b80e3
								
							
						
					
					
						commit
						c9ec1f7727
					
				
					 3 changed files with 10 additions and 5 deletions
				
			
		|  | @ -5995,7 +5995,7 @@ Error RenderingDeviceVulkan::buffer_update(RID p_buffer, uint32_t p_offset, uint | |||
| 	// No barrier should be needed here.
 | ||||
| 	// _buffer_memory_barrier(buffer->buffer, p_offset, p_size, dst_stage_mask, VK_PIPELINE_STAGE_TRANSFER_BIT, dst_access, VK_ACCESS_TRANSFER_WRITE_BIT, true);
 | ||||
| 
 | ||||
| 	Error err = _buffer_update(buffer, p_offset, (uint8_t *)p_data, p_size, p_post_barrier); | ||||
| 	Error err = _buffer_update(buffer, p_offset, (uint8_t *)p_data, p_size, true); | ||||
| 	if (err) { | ||||
| 		return err; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Matias N. Goldberg
						Matias N. Goldberg