Looks like a follow-up to 24815bd7b3b50d2e634b56ca607856ecf08ec4ee Note sure if my rb is helpful, but:
Reviewed-by: Gustaw Smolarczyk <[email protected]> 2016-11-09 8:43 GMT+01:00 Bas Nieuwenhuizen <[email protected]>: > Reviewed-by: Bas Nieuwenhuizen <[email protected]> > > On Wed, Nov 9, 2016 at 2:22 AM, Dave Airlie <[email protected]> wrote: > > From: Dave Airlie <[email protected]> > > > > if a fence is created pre-signaled we should return that > > in GetFenceStatus even if it hasn't been submitted. > > > > Signed-off-by: Dave Airlie <[email protected]> > > --- > > src/amd/vulkan/radv_device.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c > > index fdb6db9..214af5f 100644 > > --- a/src/amd/vulkan/radv_device.c > > +++ b/src/amd/vulkan/radv_device.c > > @@ -1202,6 +1202,8 @@ VkResult radv_GetFenceStatus(VkDevice _device, > VkFence _fence) > > RADV_FROM_HANDLE(radv_device, device, _device); > > RADV_FROM_HANDLE(radv_fence, fence, _fence); > > > > + if (fence->signalled) > > + return VK_SUCCESS; > > if (!fence->submitted) > > return VK_NOT_READY; > > > > -- > > 2.7.4 > > > > _______________________________________________ > > mesa-dev mailing list > > [email protected] > > https://lists.freedesktop.org/mailman/listinfo/mesa-dev > _______________________________________________ > mesa-dev mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/mesa-dev >
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
