diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-12-27 23:24:06 +0000 |
---|---|---|
committer | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-12-27 23:24:06 +0000 |
commit | 67721d2ad3987196d2e0c60f05bedd6d40ba8dd2 (patch) | |
tree | 2f47010f0827d1c2ad1ccd684902d934d53b2a5d | |
parent | 3da9e2d45ff051770217388cfb256a018e52705d (diff) |
hwtest/pgraph: Minor surf_3d_format fix.
-rw-r--r-- | hwtest/pgraph_class_surf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwtest/pgraph_class_surf.cc b/hwtest/pgraph_class_surf.cc index 14ecffd4..5bdf23c5 100644 --- a/hwtest/pgraph_class_surf.cc +++ b/hwtest/pgraph_class_surf.cc @@ -317,7 +317,7 @@ bool MthdSurf3DFormat::is_valid_val() { if (fmt == 0 || fmt > (is_celsius ? 0xa : 8)) return false; int zfmt = extr(val, 4, 4); - if ((cls == 0x96 && extr(exp.ctx_switch[0], 22, 1)) || cls == 0x98 || cls == 0x99) { + if (((cls == 0x53 || cls == 0x93 || cls == 0x96) && extr(exp.ctx_switch[0], 22, 1)) || cls == 0x98 || cls == 0x99) { if (zfmt > 1) return false; } else { @@ -327,7 +327,7 @@ bool MthdSurf3DFormat::is_valid_val() { int mode = extr(val, 8, 4); if (mode == 0 || mode > 2) return false; - if (zfmt == 1 && mode == 2) + if (zfmt == 1 && mode == 2 && cls != 0x53 && cls != 0x93) return false; if (zfmt == 1 && (fmt == 9 || fmt == 0xa)) return false; |