mesa/src
Lionel Landwerlin 68e1853ea3 intel: decoder: don't read qword outside instruction/struct limit
We used to print invalid data when the last field was being clamped to
32bits due to Dword Length of the whole instruction. Here is an
example where the decoder read part of the next instruction instead of
stopping at the 32bit limit:

0x000ce0b4:  0x10000002:  MI_STORE_DATA_IMM
0x000ce0b4:  0x10000002 : Dword 0
    DWord Length: 2
    Store Qword: 0
    Use Global GTT: false
0x000ce0b8:  0x00045010 : Dword 1
    Core Mode Enable: 0
    Address: 0x00045010
0x000ce0bc:  0x00000000 : Dword 2
0x000ce0c0:  0x00000000 : Dword 3
    Immediate Data: 8791026489807077376

With this change we have the proper value :

0x000ce0b4:  0x10000002:  MI_STORE_DATA_IMM (4 Dwords)
0x000ce0b4:  0x10000002 : Dword 0
    DWord Length: 2
    Store Qword: 0
    Use Global GTT: false
0x000ce0b8:  0x00045010 : Dword 1
    Core Mode Enable: 0
    Address: 0x00045010
0x000ce0bc:  0x00000000 : Dword 2
0x000ce0c0:  0x00000000 : Dword 3
    Immediate Data: 0

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
2017-11-01 13:19:20 +00:00
..
amd radv: bail out when binding the same vertex buffers 2017-10-31 10:16:38 +01:00
broadcom broadcom/vc5: Add some comments about the texture/output format ordering. 2017-10-30 13:31:28 -07:00
compiler glsl/shader_cache: Save fs (BlendSupport) metadata 2017-10-31 23:36:54 -07:00
egl meson: pass correct args to wayland-egl symbol test 2017-10-31 17:59:54 +00:00
gallium gallium: add cap for driver specified max combined shader resources. 2017-11-01 10:07:03 +10:00
gbm meson: pass correct args to gbm symbol test 2017-10-31 18:00:00 +00:00
getopt
glx meson: rename all instances of xf86vm to xxf86vm 2017-10-27 11:06:07 -07:00
gtest
hgl
intel intel: decoder: don't read qword outside instruction/struct limit 2017-11-01 13:19:20 +00:00
loader loader: drop empty function alias 2017-10-26 16:25:33 +01:00
mapi meson: pass correct args to gles2 ABI test 2017-10-31 18:00:11 +00:00
mesa i965: Initialize disk shader cache if MESA_GLSL_CACHE_DISABLE is false 2017-10-31 23:46:53 -07:00
util disk_cache: Fix issue reading GLSL metadata 2017-10-31 23:36:54 -07:00
vulkan vulkan: Update headers and registry to 1.0.64 2017-10-26 05:17:57 +10:00
git_sha1.h.in
Makefile.am buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00
meson.build meson: build classic osmesa 2017-10-27 11:06:45 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00