Add success logs when each renderpass segment is verified

* It makes the log easier to read and so we know which part we're at if a pixel
  fails.
This commit is contained in:
baldurk
2020-09-04 12:51:56 +01:00
parent 5a6feec9c1
commit eba6f5251c
+6
View File
@@ -32,6 +32,8 @@ class VK_Discard_Zoo(rdtest.Discard_Zoo):
self.check_pixel_value(rpcol.resourceId, x, y, [0.0, 1.0, 0.0, 1.0])
self.check_pixel_value(rpdepth.resourceId, x, y, [0.4, float(0x40)/float(255), 0.0, 1.0])
rdtest.log.success("Values are correct before the renderpass")
draw = self.find_draw("TestMiddle")
self.controller.SetFrameEvent(draw.next.eventId, True)
@@ -62,6 +64,8 @@ class VK_Discard_Zoo(rdtest.Discard_Zoo):
middle_col_bytes = self.controller.GetTextureData(rpcol.resourceId, rd.Subresource())
middle_depth_bytes = self.controller.GetTextureData(rpdepth.resourceId, rd.Subresource())
rdtest.log.success("Values are correct in the middle of the renderpass")
draw = self.find_draw("TestEnd")
self.controller.SetFrameEvent(draw.next.eventId, True)
@@ -89,6 +93,8 @@ class VK_Discard_Zoo(rdtest.Discard_Zoo):
self.check_pixel_value(rpcol.resourceId, x, y, [0.0, 1.0, 0.0, 1.0])
self.check_pixel_value(rpdepth.resourceId, x, y, [0.4, float(0x40)/float(255), 0.0, 1.0])
rdtest.log.success("Values are correct after the renderpass")
end_col_bytes = self.controller.GetTextureData(rpcol.resourceId, rd.Subresource())
end_depth_bytes = self.controller.GetTextureData(rpdepth.resourceId, rd.Subresource())