aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2012-10-09 19:24:37 +0100
committerDaniel Vetter <[email protected]>2013-01-20 13:11:16 +0100
commitd0a57789d5ec807fc218151b2fb2de4da30fbef5 (patch)
tree7725177c02c17a8df63ac146322b5d80411e60c7 /scripts
parent1f83fee08d625f8d0130f9fe5ef7b17c2e022f3c (diff)
drm/i915: Only insert the mb() before updating the fence parameter
With a fence, we only need to insert a memory barrier around the actual fence alteration for CPU accesses through the GTT. Performing the barrier in flush-fence was inserting unnecessary and expensive barriers for never fenced objects. Note removing the barriers from flush-fence, which was effectively a barrier before every direct access through the GTT, revealed that we where missing a barrier before the first access through the GTT. Lack of that barrier was sufficient to cause GPU hangs. v2: Add a couple more comments to explain the new barriers Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Reviewed-by: Jesse Barnes <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions