}
VKAPI_ATTR void VKAPI_CALL
-v3dv_CmdDispatch(VkCommandBuffer commandBuffer,
- uint32_t groupCountX,
- uint32_t groupCountY,
- uint32_t groupCountZ)
-{
- V3DV_FROM_HANDLE(v3dv_cmd_buffer, cmd_buffer, commandBuffer);
-
- cmd_buffer_emit_pre_dispatch(cmd_buffer);
- cmd_buffer_dispatch(cmd_buffer, 0, 0, 0,
- groupCountX, groupCountY, groupCountZ);
-}
-
-VKAPI_ATTR void VKAPI_CALL
v3dv_CmdDispatchBase(VkCommandBuffer commandBuffer,
uint32_t baseGroupX,
uint32_t baseGroupY,
cmd_buffer_emit_pre_dispatch(cmd_buffer);
cmd_buffer_dispatch_indirect(cmd_buffer, buffer, offset);
}
-
-VKAPI_ATTR void VKAPI_CALL
-v3dv_CmdSetDeviceMask(VkCommandBuffer commandBuffer, uint32_t deviceMask)
-{
- /* Nothing to do here since we only support a single device */
- assert(deviceMask == 0x1);
-}
}
}
-VKAPI_ATTR void VKAPI_CALL
-v3dv_GetDeviceGroupPeerMemoryFeatures(VkDevice device,
- uint32_t heapIndex,
- uint32_t localDeviceIndex,
- uint32_t remoteDeviceIndex,
- VkPeerMemoryFeatureFlags *pPeerMemoryFeatures)
-{
- assert(localDeviceIndex == 0 && remoteDeviceIndex == 0);
- *pPeerMemoryFeatures = VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT |
- VK_PEER_MEMORY_FEATURE_COPY_DST_BIT |
- VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT |
- VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT;
-}
-
uint32_t
v3dv_physical_device_vendor_id(struct v3dv_physical_device *dev)
{
#include "v3dv_private.h"
#include "compiler/nir/nir_builder.h"
+#include "vk_common_entrypoints.h"
+
static nir_shader *
get_set_event_cs()
{
VK_SHADER_STAGE_COMPUTE_BIT,
4, 1, &value);
- v3dv_CmdDispatch(commandBuffer, 1, 1, 1);
+ vk_common_CmdDispatch(commandBuffer, 1, 1, 1);
v3dv_cmd_buffer_meta_state_pop(cmd_buffer, 0, false);
}
VK_SHADER_STAGE_COMPUTE_BIT,
0, 4, &offset);
- v3dv_CmdDispatch(commandBuffer, 1, 1, 1);
+ vk_common_CmdDispatch(commandBuffer, 1, 1, 1);
v3dv_cmd_buffer_meta_state_pop(cmd_buffer, 0, false);
}