intel: Fix decoding for partial STATE_BASE_ADDRESS updates.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Oct 2018 04:41:39 +0000 (21:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Oct 2018 20:38:44 +0000 (13:38 -0700)
commit00103db04ab879fc19f305e23ac384d843241b6c
treeee0da34930d5f3f66c81619bdf959bd282608244
parent16870de8a0aab97bd3534b660e7ea73e90ac11cd
intel: Fix decoding for partial STATE_BASE_ADDRESS updates.

STATE_BASE_ADDRESS only modifies various bases if the "modify" bit is
set.  Otherwise, we want to keep the existing base address.

Iris uses this for updating Surface State Base Address while leaving the
others as-is.

v2: Also update aubinator_viewer_decoder (caught by Lionel)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_batch_decoder.c
src/intel/tools/aubinator_viewer_decoder.cpp