We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43394c7 commit a314d5cCopy full SHA for a314d5c
drivers/gpu/drm/i915/i915_gem.c
@@ -622,6 +622,8 @@ int i915_gem_obj_prepare_shmem_read(struct drm_i915_gem_object *obj,
622
if (ret)
623
return ret;
624
625
+ i915_gem_object_flush_gtt_write_domain(obj);
626
+
627
/* If we're not in the cpu read domain, set ourself into the gtt
628
* read domain and manually flush cachelines (if required). This
629
* optimizes for the case when the gpu will dirty the data
@@ -662,6 +664,8 @@ int i915_gem_obj_prepare_shmem_write(struct drm_i915_gem_object *obj,
662
664
663
665
666
667
668
669
/* If we're not in the cpu write domain, set ourself into the
670
* gtt write domain and manually flush cachelines (as required).
671
* This optimizes for the case when the gpu will use the data
0 commit comments