diff options
author | Kenneth Graunke <[email protected]> | 2017-07-01 01:59:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-07-10 15:55:19 -0700 |
commit | 3e50607a40541de81ef008ee187c26dd03cd6c9e (patch) | |
tree | 0fbec121c78b57b7f03590c04e92dda4907a12d6 /src/intel/vulkan/anv_device.c | |
parent | b117f59710e62f4afa5781c554f8113e2b0df9cc (diff) |
intel: Move clflush helpers from anv to common/gen_clflush.h.
I want to use these in the OpenGL driver as well.
v2: Add to COMMON_FILES in Makefile.sources (caught by Emil)
Reviewed-by: Daniel Vetter <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3dc55dbb8dd..39c907e9f2d 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1750,7 +1750,7 @@ clflush_mapped_ranges(struct anv_device *device, if (ranges[i].offset >= mem->map_size) continue; - anv_clflush_range(mem->map + ranges[i].offset, + gen_clflush_range(mem->map + ranges[i].offset, MIN2(ranges[i].size, mem->map_size - ranges[i].offset)); } } |