aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-03-08 11:49:42 -0800
committerPaul Berry <stereotype441@gmail.com>2013-03-14 12:35:42 -0700
commit992b69571cbdfd3166115dcdd59268c7fd2c87e0 (patch)
tree982156e345ed81f81a89cc35661d543108990131
parent91a72e2e98a1c73c95d889533599f96e511672bc (diff)
depthstencil-render-miplevels: Add test for size 273.
When a mipmapped depth texture's size satisfies size > 1 and (size % 16) == 1, this causes miplevel 1 to have a size that is a multiple of 8, but not to be aligned on a multiple of 8 boundary. This turns out to be an important corner case for the i965 driver. Note: in an ideal world, I'd modify depthstencil-render-miplevels to simply test every possible buffer size from 1 to some reasonably large size (perhaps 256), but this would produce an impractically large number of test cases. So instead I'm just testing the sizes that have been known to cause problems.
-rw-r--r--tests/all.tests7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/all.tests b/tests/all.tests
index 20120d16..5a29da7e 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -87,10 +87,9 @@ def add_fbo_depthstencil_tests(group, format):
def add_depthstencil_render_miplevels_tests(group, test_types):
- # Note: the buffer sizes of 146, 292, 585, and 1024 have been
- # chosen to exercise all possible combinations of buffer
- # alignments on i965.
- for texture_size in (146, 292, 585, 1024):
+ # Note: the buffer sizes below have been chosen to exercise
+ # many possible combinations of buffer alignments on i965.
+ for texture_size in (146, 273, 292, 585, 1024):
for test_type in test_types:
test_name = 'depthstencil-render-miplevels {0} {1}'.format(
texture_size, test_type)