From 4d61bac00fa8ac5d5cb87982d678492586602f10 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 15 Mar 2015 11:34:33 -0700 Subject: [PATCH] Assert shader constant bases. --- src/xenia/gpu/gl4/command_processor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index 4811a3c9e..3e21f7b99 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -1534,6 +1534,11 @@ CommandProcessor::UpdateStatus CommandProcessor::UpdateShaders( PrimitiveType prim_type) { auto& regs = update_shaders_regs_; + // These are the constant base addresses/ranges for shaders. + // We have these hardcoded right now cause nothing seems to differ. + assert_true(register_file_->values[XE_GPU_REG_SQ_VS_CONST].u32 == 0x000FF000); + assert_true(register_file_->values[XE_GPU_REG_SQ_PS_CONST].u32 == 0x000FF100); + bool dirty = false; dirty |= SetShadowRegister(regs.pa_su_sc_mode_cntl, XE_GPU_REG_PA_SU_SC_MODE_CNTL);