dp_tex_038 1.16 KB
#!/bin/sh

rm -rf OutData
uncompress -c ../../../../apps/rdptex_bb/InData/test038.38.rdram.Z > tmp.dp.rdram
cp tmp.dp.rdram hw.dp.rdram

#### get hw rgb image ####
rdramg hw.dp
rdram2image hw.dp
rm hw.dp.rdram

#### cov and z data are from rcp result ######
cp ../../../../rdpsim/test/rdp/OutData/test038_tex_rcp.z OutData/hw.dp_0.z
cp ../../../../rdpsim/test/rdp/OutData/test038_tex_rcp.cov OutData/hw.dp_0.cov

rdramgclr tmp.dp
../../iosim -f ../test/rdp2_tex_038.tst 
rdram2image tmp.dp

filter -c OutData/tmp.dp_0.cov -i OutData/tmp.dp_0.cvg -n OutData/tmp.dp_0.rgb -o tmp.dp_0.rgbf

idf OutData/tmp.dp_0.cov OutData/hw.dp_0.cov tmp.idf && {
	echo "Succeed: cov image mactch"
} || {
	echo "Failed: cov image mismactch"
	mv OutData/tmp.dp_0.cov OutData/tmp.tex.$$.dp_0.cov
}

idf -d OutData/tmp.dp_0.rgb OutData/hw.dp_0.rgb tmp.idf && {
	echo "Succeed: rgb image mactch"
} || {
	echo "Failed: rgb image mismactch"
	mv OutData/tmp.dp_0.rgb OutData/tmp.tex.$$.dp_0.rgb
}

idf OutData/tmp.dp_0.z OutData/hw.dp_0.z tmp.idf && {
	echo "Succeed: z image mactch"
} || {
	echo "Failed: z image mismactch"
	mv OutData/tmp.dp_0.z OutData/tmp.tex.$$.dp_0.z
}

rm tmp.dp.* tmp.idf tmp.dp_0.rgbf