diff options
| author | Dave Gordon <[email protected]> | 2016-07-14 14:52:03 +0100 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2016-07-19 09:06:16 +0200 |
| commit | 9e2793f6e4e2ca452457e459f013cc8e6b08a789 (patch) | |
| tree | 527d508c6959e5b950bb4a5ed161b06ab946882b /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | a87848750ebc2c174879f5acaa1183044287fd03 (diff) | |
drm/i915: compile-time consistency check on __EXEC_OBJECT flags
Two different sets of flag bits are stored in the 'flags' member of a
'struct drm_i915_gem_exec_object2', and they're defined in two different
source files, increasing the risk of an accidental clash.
Some flags in this field are supplied by the user; these are defined in
i915_drm.h, and they start from the LSB and work up.
Other flags are defined in i915_gem_execbuffer, for internal use within
that file only; they start from the MSB and work down.
So here we add a compile-time check that the two sets of flags do not
overlap, which would cause all sorts of confusion.
Signed-off-by: Dave Gordon <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions