mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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 <alyssa.rosenzweig@collabora.com> Tested-by: Icecream95 <ixn@keemail.me> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6159>
This commit is contained in:
parent
22777025d4
commit
340017ec47
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue