diff options
| author | Lucas De Marchi <[email protected]> | 2019-01-23 16:06:03 -0800 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2019-01-24 19:34:34 -0800 |
| commit | 5029537f4fbb30d2640d0cda86e35b6316e7464e (patch) | |
| tree | 5ac3fdfc4204c4705b5dd4e82727b57dad407f52 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 1878fce8de256dd0d263c670ae86b96b82cac735 (diff) | |
drm/i915: cache number of MOCS entries
Instead of checking the gen number every time we need to know the max
number of entries, just save it into the table struct so we don't need
extra branches throughout the code. This will be useful for Ice Lake
that has 64 rather than 62 defined entries. Ice Lake changes will be
added in a follow up.
v2: make size and n_entries `unsigned int` and introduce changes as a
pre-work for the Ice Lake changes (Tvrtko)
Suggested-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Tomasz Lis <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions