iris: allow for a unsynchronized device reset query

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24224>
This commit is contained in:
Rohan Garg 2023-07-27 12:12:20 +02:00 committed by Marge Bot
parent 2756534660
commit 4aeac9f21c
2 changed files with 5 additions and 1 deletions

View file

@ -681,6 +681,8 @@ replace_kernel_ctx(struct iris_batch *batch)
struct iris_bufmgr *bufmgr = screen->bufmgr;
const struct intel_device_info *devinfo = iris_bufmgr_get_device_info(bufmgr);
threaded_context_unwrap_sync(&batch->ice->ctx);
switch (devinfo->kmd_type) {
case INTEL_KMD_TYPE_I915:
return iris_i915_replace_batch(batch);

View file

@ -383,6 +383,8 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags)
return threaded_context_create(ctx, &screen->transfer_pool,
iris_replace_buffer_storage,
NULL, /* TODO: asynchronous flushes? */
&(struct threaded_context_options){
.unsynchronized_get_device_reset_status = true,
},
&ice->thrctx);
}