crocus: fail query begin if upload allocation fails.
This is the only place I think I can see this crashing. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17615>
This commit is contained in:
parent
2159a377c0
commit
e14022c052
|
@ -542,6 +542,8 @@ crocus_begin_query(struct pipe_context *ctx, struct pipe_query *query)
|
|||
size, size, &q->query_state_ref.offset,
|
||||
&q->query_state_ref.res, &ptr);
|
||||
|
||||
if (!q->query_state_ref.res)
|
||||
return false;
|
||||
if (!crocus_resource_bo(q->query_state_ref.res))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue