mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 22:58:31 +02:00
zink: avoid crashing when bindless texture updates aren't used
some apps trigger the texture update path far in advance of when the texture will be used, so don't crash and wait to do the update cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17665>
This commit is contained in:
parent
992cd1ae2b
commit
a2f97bd88a
1 changed files with 4 additions and 1 deletions
|
|
@ -740,7 +740,10 @@ zink_draw(struct pipe_context *pctx,
|
|||
if (zink_program_has_descriptors(&ctx->curr_program->base))
|
||||
screen->descriptors_update(ctx, false);
|
||||
|
||||
if (ctx->di.any_bindless_dirty && ctx->curr_program->base.dd->bindless)
|
||||
if (ctx->di.any_bindless_dirty &&
|
||||
/* some apps (d3dretrace) call MakeTextureHandleResidentARB randomly */
|
||||
zink_program_has_descriptors(&ctx->curr_program->base) &&
|
||||
ctx->curr_program->base.dd->bindless)
|
||||
zink_descriptors_update_bindless(ctx);
|
||||
|
||||
if (reads_basevertex) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue