[Intel-gfx] [PATCH 01/17] intel: Add a regression test for 2D decode, which I'm about to refactor.

Eric Anholt eric at anholt.net
Wed Jan 4 23:54:43 CET 2012


---
 intel/Makefile.am                      |    1 +
 intel/tests/gen7-2d-copy.batch         |  Bin 0 -> 56 bytes
 intel/tests/gen7-2d-copy.batch-ref.txt |   14 ++++++++++++++
 intel/tests/gen7-2d-copy.batch.sh      |    1 +
 4 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 intel/tests/gen7-2d-copy.batch
 create mode 100644 intel/tests/gen7-2d-copy.batch-ref.txt
 create mode 120000 intel/tests/gen7-2d-copy.batch.sh

diff --git a/intel/Makefile.am b/intel/Makefile.am
index 581c8c0..7225a78 100644
--- a/intel/Makefile.am
+++ b/intel/Makefile.am
@@ -62,6 +62,7 @@ BATCHES = \
 	tests/gm45-3d.batch \
 	tests/gen5-3d.batch \
 	tests/gen6-3d.batch \
+	tests/gen7-2d-copy.batch \
 	tests/gen7-3d.batch
 
 TESTS = \
diff --git a/intel/tests/gen7-2d-copy.batch b/intel/tests/gen7-2d-copy.batch
new file mode 100644
index 0000000000000000000000000000000000000000..ce7fc292b5d01010762d64d44098ae3c6dbdafc4
GIT binary patch
literal 56
qcmZQ;_z*II at eDHq5TpPh!vsAc5W4|H2>fSaVqg#kF_8c(hz$T0j|Of4

literal 0
HcmV?d00001

diff --git a/intel/tests/gen7-2d-copy.batch-ref.txt b/intel/tests/gen7-2d-copy.batch-ref.txt
new file mode 100644
index 0000000..0d621d3
--- /dev/null
+++ b/intel/tests/gen7-2d-copy.batch-ref.txt
@@ -0,0 +1,14 @@
+0x12300000:      0x54f08006: XY_SRC_COPY_BLT (rgb enabled, alpha enabled, src tile 1, dst tile 0)
+0x12300004:      0x03cc0190:    format 8888, pitch 400, rop 0xcc, clipping disabled,  
+0x12300008:      0x00000000:    dst (0,0)
+0x1230000c:      0x00640064:    dst (100,100)
+0x12300010:      0x122e9000:    dst offset 0x122e9000
+0x12300014:      0x00000000:    src (0,0)
+0x12300018:      0x00000080:    src pitch 128
+0x1230001c:      0x02ff1000:    src offset 0x02ff1000
+0x12300020:      0x13000002: MI_FLUSH_DW post_sync_op='no write' 
+0x12300024:      0x00000000:    address
+0x12300028:      0x00000000:    dword
+0x1230002c:      0x00000000:    upper dword
+0x12300030:      0x05000000: MI_BATCH_BUFFER_END
+0x12300034:      0x00000000:    
diff --git a/intel/tests/gen7-2d-copy.batch.sh b/intel/tests/gen7-2d-copy.batch.sh
new file mode 120000
index 0000000..796ca5f
--- /dev/null
+++ b/intel/tests/gen7-2d-copy.batch.sh
@@ -0,0 +1 @@
+test-batch.sh
\ No newline at end of file
-- 
1.7.7.3




More information about the Intel-gfx mailing list