mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-04 21:20:37 +02:00
lavapipe: don't check geometry for fb attachments
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>
(cherry picked from commit 4de7e0034a)
This commit is contained in:
parent
748697bc2a
commit
f928e2e4b7
2 changed files with 2 additions and 4 deletions
|
|
@ -337,7 +337,7 @@
|
|||
"description": "lavapipe: don't check geometry for fb attachments",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1513,9 +1513,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue