summaryrefslogtreecommitdiff
path: root/benchmarks/gem_mmap.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-10-09 18:36:24 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-10-09 18:36:24 +0300
commit106fe21373f9c3eadcd95fb4b48e452f9b328ffa (patch)
tree7c6183806e2b3ecc5b66d8abb1fb55ef8262c4c6 /benchmarks/gem_mmap.c
parent7eaae3c2013b6d4bdf11570d3fb9d95eb4978976 (diff)
lib: Die if framebuffer GTT mapping fails
Cairo helpfully allocates a new buffer for us when cairo_image_surface_create_for_data() is called with a NULL ptr. That means if gem_mmap__gtt() fails, we get a totally silent failure and nothing ever drawn into the framebuffer. Very confusing. Put in an igt_assert() to make sure we managed to mmap something. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_mmap.c')
0 files changed, 0 insertions, 0 deletions