mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Allow a ~500 difference between PS invocations and samples passed
* This can be caused by overshading/rasterization differences
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user