summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_resource.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-30 02:16:34 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commitdb15993cfdd6e03435852d408e4fabaec642f297 (patch)
tree61092b98fb31840055ad7d067266bcded14a03de /src/gallium/drivers/iris/iris_resource.c
parentbda9a77b47cd2d1ce6bef3bb31511430362fb8b0 (diff)
iris: actually pin the instruction cache buffers
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.c')
-rw-r--r--src/gallium/drivers/iris/iris_resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index b07664bc88d..be75de2402c 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -263,6 +263,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
goto fail;
if (templ->flags & IRIS_RESOURCE_FLAG_INSTRUCTION_CACHE) {
+ res->bo->kflags = EXEC_OBJECT_PINNED;
+ res->bo->name = "instruction cache";
// XXX: p_atomic_add is backwards :(
res->bo->gtt_offset = __atomic_fetch_add(&screen->next_instruction_address, res->bo->size, __ATOMIC_ACQ_REL);
}