Skip to contentSkip to conversation

tests: add test for unaligned tiled buffers

PATCH Superseded Imre Deak 1 participant 2 messages Jan 4, 2013 – Jan 7, 2013

lore
Share & tools
lore

Imre Deak

author
#0 lore raw

PATCH 1/1 tests: add test for unaligned tiled buffers

---
 tests/.gitignore            |    1 +
 tests/Makefile.am           |    1 +
 tests/unaligned_tiled_buf.c |  111 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 113 insertions(+)
 create mode 100644 tests/unaligned_tiled_buf.c
tests/.gitignore +1 -0
index 1fd8500..075d336 100644
@@ -80,6 +80,7 @@ prime_nv_pcopy
 prime_nv_test
 prime_self_import
 testdisplay
+unaligned_tiled_buf
 sysfs_rc6_residency
 sysfs_rps
 # Please keep sorted alphabetically
tests/Makefile.am +1 -0
index c49d870..97810a7 100644
@@ -13,6 +13,7 @@ NOUVEAU_TESTS = \
 endif
 
 TESTS_progs_M = \
+	unaligned_tiled_buf \
 	gem_basic \
 	gem_cacheing \
 	gem_cpu_concurrent_blit \
tests/unaligned_tiled_buf.c new file +111 -0

111 lines not on this page · raw message

Signature · 6 lines
1.7.9.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
author
#1 lore raw

PATCH v2 1/1 tests: add test for unaligned tiled buffers

In v2:
- set the unaligned buffer size properly for Gen5 HW, before it was exactly the size of a tile row and thus not catching the bug
- allocate only a tile row sized buffer to detect off-bound writes

---
 tests/.gitignore            |    1 +
 tests/Makefile.am           |    1 +
 tests/unaligned_tiled_buf.c |  113 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 115 insertions(+)
 create mode 100644 tests/unaligned_tiled_buf.c
tests/.gitignore +1 -0
index 7e2d901..bd5ab0c 100644
@@ -85,6 +85,7 @@ prime_nv_test
 prime_self_import
 prime_udl
 testdisplay
+unaligned_tiled_buf
 sysfs_rc6_residency
 sysfs_rps
 # Please keep sorted alphabetically
tests/Makefile.am +1 -0
index d63862a..c28d79a 100644
@@ -14,6 +14,7 @@ NOUVEAU_TESTS = \
 endif
 
 TESTS_progs_M = \
+	unaligned_tiled_buf \
 	gem_basic \
 	gem_cacheing \
 	gem_cpu_concurrent_blit \
tests/unaligned_tiled_buf.c new file +113 -0

113 lines not on this page · raw message

Signature · 6 lines
1.7.10.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx