[PORT FROM MAIN] Fix encoded coded buffer dump function
[PORT FROM MAIN] Fix encoded coded buffer dump function

BZ: 67340

libva trace can't dump coded buffer. It's caused by the wrong
decison in vaTraceEndPicture function which only dump coded buffer
when surface dumping is enabled.
Signed-off-by: Elaine Wang <2fccf4cf2dd4d5a13e595e1da306b18171affdc0@intel.com>

Change-Id: I8b0ec01e59faff3bfd5345d95cbf0e781f6f3706
Reviewed-on: http://android.intel.com:8080/76775
Reviewed-by: Wang, Elaine <2fccf4cf2dd4d5a13e595e1da306b18171affdc0@intel.com>
Tested-by: Tong, BoX <7927e1b0783d2bd6579dfa21c56864e307ff7b82@intel.com>
Reviewed-by: Tong, BoX <7927e1b0783d2bd6579dfa21c56864e307ff7b82@intel.com>
Reviewed-by: cactus <c3ee75fbaae48de2b78e493a0872d74c3ea268c4@intel.com>
Tested-by: cactus <c3ee75fbaae48de2b78e493a0872d74c3ea268c4@intel.com>

CyanogenMod/android_hardware_intel_common_libva,geekboxzone/mmallow_hardware_intel_common_libva,DirtyUnicorns/android_hardware_intel_common_libva,SlimRoms/hardware_intel_common_libva,SlimRoms/hardware_intel_common_libva,CM-zenfone2/android_hardware_intel_common_libva,CM-zenfone2/android_hardware_intel_common_libva,OneRom/hardware_intel_common_libva,CyanogenMod/android_hardware_intel_common_libva,DirtyUnicorns/android_hardware_intel_common_libva,geekboxzone/mmallow_hardware_intel_common_libva,DirtyUnicorns/android_hardware_intel_common_libva,CyanogenMod/android_hardware_intel_common_libva,SlimRoms/hardware_intel_common_libva,CM-zenfone2/android_hardware_intel_common_libva,OneRom/hardware_intel_common_libva,geekboxzone/mmallow_hardware_intel_common_libva,OneRom/hardware_intel_common_libva