mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
struct zink_tc_fence *mfence = zink_tc_fence(pfence);
|
||||||
|
|
||||||
if (pctx && mfence->deferred_ctx == pctx)
|
if (mfence->deferred_ctx == pctx)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mfence->deferred_ctx) {
|
if (mfence->deferred_ctx) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue