Fixes inverted matrix multiply in cubemap test.

This commit is contained in:
Erik Abair 2023-07-22 16:53:45 -07:00
parent 0f16a1120f
commit a351a6e42d
3 changed files with 26 additions and 1 deletions

View File

@ -115,8 +115,11 @@ static bool discover_historical_crashes(const std::string& log_file_path,
#endif #endif
static bool process_config(const char* config_file_path, std::vector<std::shared_ptr<TestSuite>>& test_suites); static bool process_config(const char* config_file_path, std::vector<std::shared_ptr<TestSuite>>& test_suites);
extern "C" __cdecl int automount_d_drive(void);
/* Main program function */ /* Main program function */
int main() { int main() {
automount_d_drive();
XVideoSetMode(kFramebufferWidth, kFramebufferHeight, 32, REFRESH_DEFAULT); XVideoSetMode(kFramebufferWidth, kFramebufferHeight, 32, REFRESH_DEFAULT);
// Reserve 4 times the size of the default framebuffers to allow for antialiasing. // Reserve 4 times the size of the default framebuffers to allow for antialiasing.

View File

@ -253,7 +253,7 @@ void TextureCubemapTests::TestDotSTRCubemap(const std::string &name, uint32_t do
MatrixTranslate(model_matrix, translation); MatrixTranslate(model_matrix, translation);
matrix4_t mv_matrix; matrix4_t mv_matrix;
MatrixMultMatrix(matrix, model_matrix, mv_matrix); MatrixMultMatrix(model_matrix, matrix, mv_matrix);
host_.SetFixedFunctionModelViewMatrix(mv_matrix); host_.SetFixedFunctionModelViewMatrix(mv_matrix);
auto inv_projection = host_.GetFixedFunctionInverseCompositeMatrix(); auto inv_projection = host_.GetFixedFunctionInverseCompositeMatrix();

View File

@ -73,4 +73,26 @@ if (NOT NO_OPT)
-Wno-everything -Wno-everything
) )
target_link_options(xbox_math3d PRIVATE "/debug:none") target_link_options(xbox_math3d PRIVATE "/debug:none")
else ()
if (CMAKE_BUILD_TYPE MATCHES Debug)
target_compile_options(
xbox_math3d
PRIVATE
-g
-gdwarf-4
-O0
-Wall
-fstandalone-debug
)
target_link_options(xbox_math3d PRIVATE "/debug:full")
else ()
target_compile_options(
xbox_math3d
PRIVATE
-O3
-fno-strict-aliasing
-Wall
)
target_link_options(xbox_math3d PRIVATE "/debug:none")
endif ()
endif () endif ()