mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
freedreno: Allow resource shadowing for TC
TC_TRANSFER_MAP_NO_INVALIDATE just means we can't invalidate. It doesn't preclude the resource shadow path. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10444>
This commit is contained in:
parent
ecd4793d6c
commit
c64bc095e7
1 changed files with 0 additions and 2 deletions
|
|
@ -814,7 +814,6 @@ resource_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc,
|
|||
*/
|
||||
if (ctx->screen->reorder && busy && !(usage & PIPE_MAP_READ) &&
|
||||
(usage & PIPE_MAP_DISCARD_RANGE)) {
|
||||
assert(!(usage & TC_TRANSFER_MAP_NO_INVALIDATE));
|
||||
|
||||
/* try shadowing only if it avoids a flush, otherwise staging would
|
||||
* be better:
|
||||
|
|
@ -888,7 +887,6 @@ improve_transfer_map_usage(struct fd_context *ctx, struct fd_resource *rsc,
|
|||
{
|
||||
if (usage & TC_TRANSFER_MAP_NO_INVALIDATE) {
|
||||
usage &= ~PIPE_MAP_DISCARD_WHOLE_RESOURCE;
|
||||
usage &= ~PIPE_MAP_DISCARD_RANGE;
|
||||
}
|
||||
|
||||
if (usage & TC_TRANSFER_MAP_THREADED_UNSYNC)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue