From: Alyssa Rosenzweig Date: Tue, 21 Jul 2020 20:05:20 +0000 (-0400) Subject: panfrost: Set `initialized` more conservatively X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=340017ec476bf4af3297b7b3a65f667cbfc93a5f;p=mesa.git panfrost: Set `initialized` more conservatively In case Gallium doesn't ask for direct but we give a direct mapping anyway. Signed-off-by: Alyssa Rosenzweig Tested-by: Icecream95 Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index e647a6c7f8b..8a9dd549d7b 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -680,7 +680,7 @@ panfrost_transfer_map(struct pipe_context *pctx, /* By mapping direct-write, we're implicitly already * initialized (maybe), so be conservative */ - if ((usage & PIPE_TRANSFER_WRITE) && (usage & PIPE_TRANSFER_MAP_DIRECTLY)) { + if (usage & PIPE_TRANSFER_WRITE) { rsrc->slices[level].initialized = true; panfrost_minmax_cache_invalidate(rsrc->index_cache, &transfer->base); }