mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-25 15:09:43 +00:00
s/gem_mmap/gem_mmap__gtt/
Get rid of the gem_mmap() alias of gem_mmap__gtt(). I don't see any point in having it. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+2
-2
@@ -140,10 +140,10 @@ static void run(data_t *data, int child)
|
||||
* set-to-gtt-domain within the fault handler.
|
||||
*/
|
||||
if (write) {
|
||||
ptr = gem_mmap(data->fd, handle, size, PROT_READ | PROT_WRITE);
|
||||
ptr = gem_mmap__gtt(data->fd, handle, size, PROT_READ | PROT_WRITE);
|
||||
ptr[rand() % (size / 4)] = canary;
|
||||
} else
|
||||
ptr = gem_mmap(data->fd, handle, size, PROT_READ);
|
||||
ptr = gem_mmap__gtt(data->fd, handle, size, PROT_READ);
|
||||
x = ptr[rand() % (size / 4)];
|
||||
munmap(ptr, size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user