drm/i915: intel hw has only one gpu write domain
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 36 lines · Daniel Vetter
Quoted 13 lines · Eric Anholt
Quoted 11 lines · Daniel Vetter
It therefore holds that all objects on the
gpu_write_domainare in this single write domain. Drop an if checking for the write domain inprocess_flushing_list.For some odd reason
retire_commandsthinks that the sampler cache can be written to. Remove this and the assorted logic indo_execbuf.Also check that userspace doesn't try to screw us over by claiming to write to some strange cache.
The idea for this patch emerged from a discussion with Chris Wilson.
Quoted 7 lines
The intent of the
flush_domainsinretire_commandswas to note that the read-only sampler cache was flushed and we could clear the read domains so that a later attempt to use it in the sampler cache wouldn't send out a new flush.You've been looking into this stuff more than I have recently -- do you think that handling that information would be interesting?
atm we don't handle invalidating read-domains as efficient as write-domains. Read: We don't globally update all bo's when doing a sampler cache invalidations like we do when flushing the render cache. So that
flush_domainstuff fromretire_commandswas pure dead code.We could do better of course. Problem is that tracking the buffers that might benefit from a
read_domainswith lists like we're doing for the write domain needsNUM_READ_DOMAINlist_headsper object. That's rather gross. But we could keep track of the last seqno this bo was dirtied (by either the gpu or the cpu, for the cpu just take the latest completed seqno) and also keep track of the seqno of the last invalidate for each read cache. At execbuf time we could then compare these two seqnos and decide whether a invalidate is still needed.
Quoted 5 lines
I haven't implemented this because
- I don't have the hw that would benefit the most (i965).
- On different hw, I don't think we'll gain much. At least as long as multi-client drm usage is still uncommon.
- Currently we still have easier targets for faster performance ;)
OK. Seems like a fair assessment of the situation. Applied to -next.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 37 lines · Eric Anholt
Quoted 36 lines · Daniel Vetter
Quoted 13 lines · Eric Anholt
Quoted 11 lines · Daniel Vetter
It therefore holds that all objects on the
gpu_write_domainare in this single write domain. Drop an if checking for the write domain inprocess_flushing_list.For some odd reason
retire_commandsthinks that the sampler cache can be written to. Remove this and the assorted logic indo_execbuf.Also check that userspace doesn't try to screw us over by claiming to write to some strange cache.
The idea for this patch emerged from a discussion with Chris Wilson.
Quoted 7 lines
The intent of the
flush_domainsinretire_commandswas to note that the read-only sampler cache was flushed and we could clear the read domains so that a later attempt to use it in the sampler cache wouldn't send out a new flush.You've been looking into this stuff more than I have recently -- do you think that handling that information would be interesting?
atm we don't handle invalidating read-domains as efficient as write-domains. Read: We don't globally update all bo's when doing a sampler cache invalidations like we do when flushing the render cache. So that
flush_domainstuff fromretire_commandswas pure dead code.We could do better of course. Problem is that tracking the buffers that might benefit from a
read_domainswith lists like we're doing for the write domain needsNUM_READ_DOMAINlist_headsper object. That's rather gross. But we could keep track of the last seqno this bo was dirtied (by either the gpu or the cpu, for the cpu just take the latest completed seqno) and also keep track of the seqno of the last invalidate for each read cache. At execbuf time we could then compare these two seqnos and decide whether a invalidate is still needed.
Quoted 7 lines
Quoted 5 lines
I haven't implemented this because
- I don't have the hw that would benefit the most (i965).
- On different hw, I don't think we'll gain much. At least as long as multi-client drm usage is still uncommon.
- Currently we still have easier targets for faster performance ;)OK. Seems like a fair assessment of the situation. Applied to -next.
Actually, having just noticed the "reject user write domains other than RENDER." That will break 965 occlusion queries. I've gone back and removed this patch from my -next tree.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx