Allow a ~500 difference between PS invocations and samples passed

* This can be caused by overshading/rasterization differences
This commit is contained in:
baldurk
2022-09-19 16:42:42 +01:00
parent 1fa4fed24a
commit 00d7827d06
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ class D3D11_Counters(rdtest.TestCase):
rdtest.log.success("{} of draw {} is expected".format(desc.name, val))
if ps is not None and samp is not None:
if ps != samp:
# allow 500 difference for overshading counting
if abs(ps - samp) > 500:
raise rdtest.TestFailureException("Samples passed {} and PS invocations {} don't match".format(samp, ps))
else:
rdtest.log.success("Samples passed {} and PS invocations {} match".format(samp, ps))
+2 -1
View File
@@ -82,7 +82,8 @@ class D3D12_Counters(rdtest.TestCase):
rdtest.log.success("{} of draw {} is expected".format(desc.name, val))
if ps is not None and samp is not None:
if ps != samp:
# allow 500 difference for overshading counting
if abs(ps - samp) > 500:
raise rdtest.TestFailureException("Samples passed {} and PS invocations {} don't match".format(samp, ps))
else:
rdtest.log.success("Samples passed {} and PS invocations {} match".format(samp, ps))
+2 -1
View File
@@ -82,7 +82,8 @@ class GL_Counters(rdtest.TestCase):
rdtest.log.success("{} of draw {} is expected".format(desc.name, val))
if ps is not None and samp is not None:
if ps != samp:
# allow 500 difference for overshading counting
if abs(ps - samp) > 500:
raise rdtest.TestFailureException("Samples passed {} and PS invocations {} don't match".format(samp, ps))
else:
rdtest.log.success("Samples passed {} and PS invocations {} match".format(samp, ps))
+2 -1
View File
@@ -82,7 +82,8 @@ class VK_Counters(rdtest.TestCase):
rdtest.log.success("{} of draw {} is expected".format(desc.name, val))
if ps is not None and samp is not None:
if ps != samp:
# allow 500 difference for overshading counting
if abs(ps - samp) > 500:
raise rdtest.TestFailureException("Samples passed {} and PS invocations {} don't match".format(samp, ps))
else:
rdtest.log.success("Samples passed {} and PS invocations {} match".format(samp, ps))