From 73709be0c32601952b6902d83ec4541fb9f73cd9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 21 Dec 2018 01:00:34 -0800 Subject: [PATCH] iris: Fix compute scratch pinning Thanks to Eero Tamminen for helping catch this. --- src/gallium/drivers/iris/iris_state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 9acb7bd65bf..a8d644eeae6 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4713,9 +4713,8 @@ iris_upload_compute_state(struct iris_context *ice, struct iris_bo *bo = iris_get_scratch_space(ice, prog_data->total_scratch, MESA_SHADER_COMPUTE); - uint32_t scratch_addr = bo->gtt_offset; vfe.PerThreadScratchSpace = ffs(prog_data->total_scratch) - 11; - vfe.ScratchSpaceBasePointer = rw_bo(NULL, scratch_addr); + vfe.ScratchSpaceBasePointer = rw_bo(bo, 0); } vfe.MaximumNumberofThreads = -- 2.30.2