mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
st/mesa: Deal with empty textures/buffers in semaphore wait/signal.
The actual texture might not have been created yet. Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3257 CC: mesa-stable Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6788>
This commit is contained in:
parent
08add9f61c
commit
ade72e677b
1 changed files with 8 additions and 4 deletions
|
|
@ -109,6 +109,7 @@ st_server_wait_semaphore(struct gl_context *ctx,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bufObj = st_buffer_object(bufObjs[i]);
|
bufObj = st_buffer_object(bufObjs[i]);
|
||||||
|
if (bufObj->buffer)
|
||||||
pipe->flush_resource(pipe, bufObj->buffer);
|
pipe->flush_resource(pipe, bufObj->buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,6 +118,7 @@ st_server_wait_semaphore(struct gl_context *ctx,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
texObj = st_texture_object(texObjs[i]);
|
texObj = st_texture_object(texObjs[i]);
|
||||||
|
if (texObj->pt)
|
||||||
pipe->flush_resource(pipe, texObj->pt);
|
pipe->flush_resource(pipe, texObj->pt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -141,6 +143,7 @@ st_server_signal_semaphore(struct gl_context *ctx,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bufObj = st_buffer_object(bufObjs[i]);
|
bufObj = st_buffer_object(bufObjs[i]);
|
||||||
|
if (bufObj->buffer)
|
||||||
pipe->flush_resource(pipe, bufObj->buffer);
|
pipe->flush_resource(pipe, bufObj->buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -149,6 +152,7 @@ st_server_signal_semaphore(struct gl_context *ctx,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
texObj = st_texture_object(texObjs[i]);
|
texObj = st_texture_object(texObjs[i]);
|
||||||
|
if (texObj->pt)
|
||||||
pipe->flush_resource(pipe, texObj->pt);
|
pipe->flush_resource(pipe, texObj->pt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue