Module: Mesa
Branch: main
Commit: b82d545442538d91f46d7b7d384c10c15d12cbb7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b82d545442538d91f46d7b7d384c10c15d12cbb7

Author: Kenneth Graunke <[email protected]>
Date:   Thu Sep 29 16:36:01 2022 -0700

iris: Delete map->dest_had_defined_contents

Dead since commit 6cc09699cd77286f7601a1afab60dc9fa0bafd48.

Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19209>

---

 src/gallium/drivers/iris/iris_resource.c | 4 ----
 src/gallium/drivers/iris/iris_resource.h | 2 --
 2 files changed, 6 deletions(-)

diff --git a/src/gallium/drivers/iris/iris_resource.c 
b/src/gallium/drivers/iris/iris_resource.c
index ceed9bedbfc..d33a8e7898b 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -2433,10 +2433,6 @@ iris_transfer_map(struct pipe_context *ctx,
    xfer->box = *box;
    *ptransfer = xfer;
 
-   map->dest_had_defined_contents =
-      util_ranges_intersect(&res->valid_buffer_range, box->x,
-                            box->x + box->width);
-
    if (usage & PIPE_MAP_WRITE)
       util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + 
box->width);
 
diff --git a/src/gallium/drivers/iris/iris_resource.h 
b/src/gallium/drivers/iris/iris_resource.h
index a60fba56719..ffb50af9796 100644
--- a/src/gallium/drivers/iris/iris_resource.h
+++ b/src/gallium/drivers/iris/iris_resource.h
@@ -281,8 +281,6 @@ struct iris_transfer {
    struct blorp_context *blorp;
    struct iris_batch *batch;
 
-   bool dest_had_defined_contents;
-
    void (*unmap)(struct iris_transfer *);
 };
 

Reply via email to