diff options
| author | Chris Wilson <[email protected]> | 2019-01-25 12:00:05 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-01-25 12:53:15 +0000 |
| commit | 832a67bdb205765109d37fdfff4a97479b03b19b (patch) | |
| tree | 0b9c4501c9c2a37d715e97848c83d1ad11638f91 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 9fa4973e91be3e5cb220f7d607c21bf6e82c52d1 (diff) | |
drm/i915: Compute the HWS offsets explicitly
Simplify by using sizeof(u32) to convert from the index inside the HWSP
to the byte offset. This has the advantage of not only being shorter
(and so not upsetting checkpatch!) but that it matches use where we are
writing to byte addresses using other commands than MI_STORE_DWORD_IMM.
v2: Drop the now superfluous MI_STORE_DWORD_INDEX_SHIFT, it appears to
be a local invention so keeping it after the final use does not help to
clarify the GPU instruction.
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions