mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
iris: parse global bindings for every gen
This fixes OpenCL support on gen 12.5+ Cc: mesa-stable Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34548>
This commit is contained in:
parent
8447f7aaae
commit
57ccfd0502
1 changed files with 16 additions and 9 deletions
|
|
@ -9263,15 +9263,6 @@ iris_upload_gpgpu_walker(struct iris_context *ice,
|
|||
}
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < IRIS_MAX_GLOBAL_BINDINGS; i++) {
|
||||
struct pipe_resource *res = ice->state.global_bindings[i];
|
||||
if (!res)
|
||||
break;
|
||||
|
||||
iris_use_pinned_bo(batch, iris_resource_bo(res),
|
||||
true, IRIS_DOMAIN_NONE);
|
||||
}
|
||||
|
||||
if (stage_dirty & (IRIS_STAGE_DIRTY_SAMPLER_STATES_CS |
|
||||
IRIS_STAGE_DIRTY_BINDINGS_CS |
|
||||
IRIS_STAGE_DIRTY_CONSTANTS_CS |
|
||||
|
|
@ -9326,6 +9317,20 @@ iris_upload_gpgpu_walker(struct iris_context *ice,
|
|||
|
||||
#endif /* #if GFX_VERx10 >= 125 */
|
||||
|
||||
static void
|
||||
iris_use_global_bindings(struct iris_context *ice,
|
||||
struct iris_batch *batch)
|
||||
{
|
||||
for (unsigned i = 0; i < IRIS_MAX_GLOBAL_BINDINGS; i++) {
|
||||
struct pipe_resource *res = ice->state.global_bindings[i];
|
||||
if (!res)
|
||||
break;
|
||||
|
||||
iris_use_pinned_bo(batch, iris_resource_bo(res),
|
||||
true, IRIS_DOMAIN_NONE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
iris_upload_compute_state(struct iris_context *ice,
|
||||
struct iris_batch *batch,
|
||||
|
|
@ -9367,6 +9372,8 @@ iris_upload_compute_state(struct iris_context *ice,
|
|||
iris_use_pinned_bo(batch, border_color_pool->bo, false,
|
||||
IRIS_DOMAIN_NONE);
|
||||
|
||||
iris_use_global_bindings(ice, batch);
|
||||
|
||||
#if GFX_VER >= 12
|
||||
genX(invalidate_aux_map_state)(batch);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue