iris: Fix compute scratch pinning
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 21 Dec 2018 09:00:34 +0000 (01:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
Thanks to Eero Tamminen for helping catch this.

src/gallium/drivers/iris/iris_state.c

index 9acb7bd65bf879e0febe0b15df7f3ae05be7878c..a8d644eeae6b5bb3b0188321ac73861c018799fe 100644 (file)
@@ -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 =