diff options
| author | Christian König <[email protected]> | 2018-02-16 12:43:38 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2018-02-16 14:12:48 +0000 |
| commit | c0a51fd07b1dd50f31a413f0e7bb5e4499de2042 (patch) | |
| tree | 8822a24e2dcefdb4db9d32b81a908242ca66dbd2 /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | drm/i915/cnl: Fix PORT_TX_DW5/7 register address (diff) | |
| download | kernel-c0a51fd07b1dd50f31a413f0e7bb5e4499de2042.tar.gz kernel-c0a51fd07b1dd50f31a413f0e7bb5e4499de2042.zip | |
drm: move read_domains and write_domain into i915
i915 is the only driver using those fields in the drm_gem_object
structure, so they only waste memory for all other drivers.
Move the fields into drm_i915_gem_object instead and patch the i915 code
with the following sed commands:
sed -i "s/obj->base.read_domains/obj->read_domains/g" drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c
sed -i "s/obj->base.write_domain/obj->write_domain/g" drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c
Change is only compile tested.
v2: move fields around as suggested by Chris.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Chris Wilson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
