Module: Mesa
Branch: master
Commit: 340017ec476bf4af3297b7b3a65f667cbfc93a5f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=340017ec476bf4af3297b7b3a65f667cbfc93a5f

Author: Alyssa Rosenzweig <[email protected]>
Date:   Tue Jul 21 16:05:20 2020 -0400

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 <[email protected]>
Tested-by: Icecream95 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6159>

---

 src/gallium/drivers/panfrost/pan_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
                 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to