radv: only pass relevant stages when emitting DGC push constants
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32346>
This commit is contained in:
committed by
Marge Bot
parent
aa8cd5ea7b
commit
acc84133f1
@@ -2527,7 +2527,9 @@ build_dgc_prepare_shader(struct radv_device *dev, struct radv_indirect_command_l
|
||||
|
||||
if (layout->push_constant_mask) {
|
||||
const VkShaderStageFlags stages =
|
||||
VK_SHADER_STAGE_ALL_GRAPHICS | VK_SHADER_STAGE_COMPUTE_BIT | VK_SHADER_STAGE_MESH_BIT_EXT;
|
||||
(layout->vk.dgc_info & (BITFIELD_BIT(MESA_VK_DGC_RT) | BITFIELD_BIT(MESA_VK_DGC_DISPATCH)))
|
||||
? VK_SHADER_STAGE_COMPUTE_BIT
|
||||
: (VK_SHADER_STAGE_ALL_GRAPHICS | VK_SHADER_STAGE_MESH_BIT_EXT);
|
||||
|
||||
dgc_emit_push_constant(&cmd_buf, stream_addr, sequence_id, stages);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user