Skip to content

Commit

Permalink
drm/i915: Make a single set-to-cpu-domain path and use it wherever ne…
Browse files Browse the repository at this point in the history
…eded.

This fixes several domain management bugs, including potential lack of cache
invalidation for pread, potential failure to wait for set_domain(CPU, 0),
and more, along with producing more intelligible code.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Eric Anholt authored and Dave Airlie committed Dec 4, 2008
1 parent 2ef7eea commit e47c68e
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 152 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ struct drm_i915_gem_object {
uint32_t agp_type;

/**
* Flagging of which individual pages are valid in GEM_DOMAIN_CPU when
* GEM_DOMAIN_CPU is not in the object's read domain.
* If present, while GEM_DOMAIN_CPU is in the read domain this array
* flags which individual pages are valid.
*/
uint8_t *page_cpu_valid;
};
Expand Down
Loading

0 comments on commit e47c68e

Please sign in to comment.