@ -299,10 +299,6 @@ vkr_dispatch_vkGetDeviceQueue(struct vn_dispatch_context *dispatch,
struct vkr_context * ctx = dispatch - > data ;
struct vkr_context * ctx = dispatch - > data ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
if ( ! dev | | dev - > base . type ! = VK_OBJECT_TYPE_DEVICE ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
return ;
}
struct vkr_queue * queue = vkr_device_lookup_queue (
struct vkr_queue * queue = vkr_device_lookup_queue (
dev , 0 /* flags */ , args - > queueFamilyIndex , args - > queueIndex ) ;
dev , 0 /* flags */ , args - > queueFamilyIndex , args - > queueIndex ) ;
@ -323,10 +319,6 @@ vkr_dispatch_vkGetDeviceQueue2(struct vn_dispatch_context *dispatch,
struct vkr_context * ctx = dispatch - > data ;
struct vkr_context * ctx = dispatch - > data ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
if ( ! dev | | dev - > base . type ! = VK_OBJECT_TYPE_DEVICE ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
return ;
}
struct vkr_queue * queue = vkr_device_lookup_queue ( dev , args - > pQueueInfo - > flags ,
struct vkr_queue * queue = vkr_device_lookup_queue ( dev , args - > pQueueInfo - > flags ,
args - > pQueueInfo - > queueFamilyIndex ,
args - > pQueueInfo - > queueFamilyIndex ,
@ -449,15 +441,10 @@ vkr_dispatch_vkDestroySemaphore(struct vn_dispatch_context *dispatch,
}
}
static void
static void
vkr_dispatch_vkGetSemaphoreCounterValue ( struct vn_dispatch_context * dispatch ,
vkr_dispatch_vkGetSemaphoreCounterValue ( UNUSED struct vn_dispatch_context * dispatch ,
struct vn_command_vkGetSemaphoreCounterValue * args )
struct vn_command_vkGetSemaphoreCounterValue * args )
{
{
struct vkr_context * ctx = dispatch - > data ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
if ( ! dev | | dev - > base . type ! = VK_OBJECT_TYPE_DEVICE ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
return ;
}
vn_replace_vkGetSemaphoreCounterValue_args_handle ( args ) ;
vn_replace_vkGetSemaphoreCounterValue_args_handle ( args ) ;
args - > ret = dev - > GetSemaphoreCounterValue ( args - > device , args - > semaphore , args - > pValue ) ;
args - > ret = dev - > GetSemaphoreCounterValue ( args - > device , args - > semaphore , args - > pValue ) ;
@ -470,11 +457,6 @@ vkr_dispatch_vkWaitSemaphores(struct vn_dispatch_context *dispatch,
struct vkr_context * ctx = dispatch - > data ;
struct vkr_context * ctx = dispatch - > data ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
if ( ! dev | | dev - > base . type ! = VK_OBJECT_TYPE_DEVICE ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
return ;
}
/* no blocking call */
/* no blocking call */
if ( args - > timeout ) {
if ( args - > timeout ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
@ -486,15 +468,10 @@ vkr_dispatch_vkWaitSemaphores(struct vn_dispatch_context *dispatch,
}
}
static void
static void
vkr_dispatch_vkSignalSemaphore ( struct vn_dispatch_context * dispatch ,
vkr_dispatch_vkSignalSemaphore ( UNUSED struct vn_dispatch_context * dispatch ,
struct vn_command_vkSignalSemaphore * args )
struct vn_command_vkSignalSemaphore * args )
{
{
struct vkr_context * ctx = dispatch - > data ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
struct vkr_device * dev = ( struct vkr_device * ) args - > device ;
if ( ! dev | | dev - > base . type ! = VK_OBJECT_TYPE_DEVICE ) {
vkr_cs_decoder_set_fatal ( & ctx - > decoder ) ;
return ;
}
vn_replace_vkSignalSemaphore_args_handle ( args ) ;
vn_replace_vkSignalSemaphore_args_handle ( args ) ;
args - > ret = dev - > SignalSemaphore ( args - > device , args - > pSignalInfo ) ;
args - > ret = dev - > SignalSemaphore ( args - > device , args - > pSignalInfo ) ;