fix bug in collide-probe (#1180)

* fix bug in collide-probe

* add debug print
This commit is contained in:
water111
2022-02-18 23:01:05 -05:00
committed by GitHub
parent 5135ea9659
commit f91d1f4056
4 changed files with 5 additions and 5 deletions
+1
View File
@@ -78,6 +78,7 @@ void setup_cpu_info() {
printf(" Model: %s\n", gCpuInfo.model.c_str());
printf(" AVX : %s\n", gCpuInfo.has_avx ? "true" : "false");
printf(" AVX2 : %s\n", gCpuInfo.has_avx2 ? "true" : "false");
fflush(stdout);
gCpuInfo.initialized = true;
}
-2
View File
@@ -834,8 +834,6 @@ u64 execute(void* ctxt) {
block_40:
// Unknown instr: vcallms 54
// fmt::print("vcallms54\n");
// nop | maddx.xyz vf19, vf04, vf00
c->vmadd_bc(DEST::xyz, BC::w, vf19, vf4, vf0);
// nop | mulaw.xyzw ACC, vf20, vf00
c->vmula_bc(DEST::xyzw, BC::w, vf20, vf0);
// nop | maddax.xyzw ACC, vf17, vf05
+1 -3
View File
@@ -113,10 +113,8 @@
(set! (-> *collide-list* num-items) 0)
;; HACK: the special case collide-probe-make-list function doesn't always work correctly.
;; for example, on the little side thing in FJ it totally misses.
(cond
(#f ;; (= bsp-find-mesh-func (method-of-type bsp-header collide-ray))
((= bsp-find-mesh-func (method-of-type bsp-header collide-ray))
;; for collide-ray (actually line-sphere), we have a fancy version.
(dotimes (s4-1 (-> *level* length))
(let ((a0-2 (-> *level* level s4-1)))
+3
View File
@@ -4,6 +4,7 @@
#include "common/util/FileUtil.h"
#include "common/log/log.h"
#include "common/util/os.h"
// Running subsets of tests, see:
// -
@@ -17,6 +18,8 @@
// to make it easier to test a subset of tests
int main(int argc, char** argv) {
// hopefully get a debug print on github actions
setup_cpu_info();
lg::initialize();
::testing::InitGoogleTest(&argc, argv);