lavapipe: don't check geometry for fb attachments
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 26 Jul 2023 20:30:56 +0000 (16:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 2 Aug 2023 03:20:56 +0000 (03:20 +0000)
this is broken since surfaces always have minified geometry

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24339>

src/gallium/frontends/lavapipe/lvp_execute.c

index 1cf68cb..e59ed25 100644 (file)
@@ -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);
    }