[Intel-gfx] [PATCH] drm/i915: Don't let a device flush to prepare buffers clear new write_domains.
keithp at keithp.com
Fri Feb 20 07:47:24 PST 2009
On Fri, 2009-02-20 at 12:12 +0000, Chris Wilson wrote:
> Whilst looking at the domain checking, I think one case is missing
> during the validation. AIUI, a write object must have read_domains ==
That's certainly makes things easier to understand, but it's not
necessary. Imagine a batch buffer which first reads through the texture
cache and then writes to the same object through the render cache. That
batch buffer would need to ensure that both texture and render caches
were prepared for reading and then it would leave the buffer with data
in the render cache.
You'll see that Eric also posted a patch to Mesa which eliminated one
case where it (incorrectly) specified texture|render, render. That fixed
lots of Mesa issues even without having the GEM bug fixed.
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/intel-gfx/attachments/20090220/eb1c8f49/attachment.pgp
More information about the Intel-gfx