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

Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jul 26 16:30:56 2023 -0400

lavapipe: don't check geometry for fb attachments

this is broken since surfaces always have minified geometry

cc: mesa-stable

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24339>

---

 src/gallium/frontends/lavapipe/lvp_execute.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c 
b/src/gallium/frontends/lavapipe/lvp_execute.c
index 1cf68cb7fe5..e59ed25c3ce 100644
--- a/src/gallium/frontends/lavapipe/lvp_execute.c
+++ b/src/gallium/frontends/lavapipe/lvp_execute.c
@@ -1252,9 +1252,7 @@ static void add_img_view_surface(struct rendering_state 
*state,
                                  int layer_count)
 {
    if (imgv->surface) {
-      if (imgv->surface->width != width ||
-          imgv->surface->height != height ||
-          (imgv->surface->u.tex.last_layer - imgv->surface->u.tex.first_layer) 
!= (layer_count - 1))
+      if ((imgv->surface->u.tex.last_layer - imgv->surface->u.tex.first_layer) 
!= (layer_count - 1))
          pipe_surface_reference(&imgv->surface, NULL);
    }
 

Reply via email to