mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv/rt: Divide by the correct workgroup size
Improves build performance by around 25%. Fixes:9369b407("radv: Use PLOC for BVH building") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20717> (cherry picked from commiteab2c39951)
This commit is contained in:
parent
bbf4675847
commit
35213f18b8
2 changed files with 2 additions and 2 deletions
|
|
@ -886,7 +886,7 @@
|
|||
"description": "radv/rt: Divide by the correct workgroup size",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "9369b407250b089d54e2247a7c8c10c65188c551"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -790,7 +790,7 @@ ploc_build_internal(VkCommandBuffer commandBuffer, uint32_t infoCount,
|
|||
cmd_buffer->device->meta_state.accel_struct_build.ploc_p_layout,
|
||||
VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof(consts), &consts);
|
||||
vk_common_CmdDispatch(commandBuffer,
|
||||
MAX2(DIV_ROUND_UP(bvh_states[i].node_count, 64), 1), 1, 1);
|
||||
MAX2(DIV_ROUND_UP(bvh_states[i].node_count, PLOC_WORKGROUP_SIZE), 1), 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue