zink: remove assert for dt in zink_kopper_update

this is a valid (harmless) path that can be hit by in some cases

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23511>
(cherry picked from commit 43a6f8b9f8)
This commit is contained in:
Mike Blumenkrantz 2023-06-02 08:44:23 -04:00 committed by Eric Engestrom
parent 9ccac714a8
commit 67ff45c08e
2 changed files with 1 additions and 2 deletions

View file

@ -3361,7 +3361,7 @@
"description": "zink: remove assert for dt in zink_kopper_update",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -878,7 +878,6 @@ zink_kopper_update(struct pipe_screen *pscreen, struct pipe_resource *pres, int
{
struct zink_resource *res = zink_resource(pres);
struct zink_screen *screen = zink_screen(pscreen);
assert(pres->bind & PIPE_BIND_DISPLAY_TARGET);
if (!res->obj->dt)
return false;
struct kopper_displaytarget *cdt = res->obj->dt;