zink: pctx can't be null here

We're checking if pctx is null here, but that can't be true. If it
could, then the code that follows would have immediately crashed.

A quick peek at other drivers seems to indicate that this is a safe
assumption.

CID: 1474410, 1474554

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12559>
This commit is contained in:
Erik Faye-Lund 2021-08-26 11:17:21 +02:00 committed by Marge Bot
parent 4cc3554d85
commit 40f704f2f3
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ zink_fence_server_sync(struct pipe_context *pctx, struct pipe_fence_handle *pfen
{
struct zink_tc_fence *mfence = zink_tc_fence(pfence);
if (pctx && mfence->deferred_ctx == pctx)
if (mfence->deferred_ctx == pctx)
return;
if (mfence->deferred_ctx) {