diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-20 01:04:24 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-20 01:04:24 +0000 |
commit | f297aafeb6506dc92f9bae5d2c7c7a0a49a5f8ce (patch) | |
tree | 9a719b5ee7ab470b4a821ec8dc7dd5f2c6f58545 /sys | |
parent | 02018eefc6801b9abbc976bd3ea63ba37dce9df4 (diff) |
make zeroing fb mem conditional matching linux path
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/i915/display/intel_fbdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/display/intel_fbdev.c b/sys/dev/pci/drm/i915/display/intel_fbdev.c index 6a769e91991..7e4a25367c8 100644 --- a/sys/dev/pci/drm/i915/display/intel_fbdev.c +++ b/sys/dev/pci/drm/i915/display/intel_fbdev.c @@ -301,7 +301,8 @@ static int intelfb_create(struct drm_fb_helper *helper, break; } - memset(ri->ri_bits, 0, vma->node.size); + if (vma->obj->stolen && !prealloc) + memset(ri->ri_bits, 0, vma->node.size); } #endif |