Assert shader constant bases.

This commit is contained in:
Ben Vanik 2015-03-15 11:34:33 -07:00
parent d803612184
commit 4d61bac00f
1 changed files with 5 additions and 0 deletions

View File

@ -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);