iris: Fix compute scratch pinning

Thanks to Eero Tamminen for helping catch this.
This commit is contained in:
Kenneth Graunke 2018-12-21 01:00:34 -08:00
parent 3ab3aa23c2
commit 73709be0c3

View 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 =