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:
parent
4cc3554d85
commit
40f704f2f3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue