[intel-gem] Compute npages instead of nbytes in flush_pwrite
authorKeith Packard <keithp@keithp.com>
Mon, 26 May 2008 03:44:19 +0000 (20:44 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 26 May 2008 03:44:19 +0000 (20:44 -0700)
commit6d1d11704ab36e4ee50b2c1d3b984ab6bb691417
treed723c4f4259009cef3ecf3fb106b15947bf5bcbf
parentc69b81df62cb7e04f956f2cf77091216754c3632
[intel-gem] Compute npages instead of nbytes in flush_pwrite

i915_gem_flush_pwrite optimizes short writes to the buffer by clflushing
only the modified pages, but it was miscomputing the number of pages.
linux-core/i915_gem.c