summaryrefslogtreecommitdiff
path: root/lib/igt_gt.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2015-02-02 11:07:55 -0800
committerMatt Roper <matthew.d.roper@intel.com>2015-02-10 09:20:39 -0800
commit9ca2cc12b4a11c20b41479e94ac8837321c0a2b1 (patch)
tree24c50fe1b9ea9fffdf67259c3d505089b0486548 /lib/igt_gt.h
parent9846e7f2c57dc7c36d5d6f64e4a9fc7f50feda33 (diff)
kms_cursor_crc: Kernel now checks for integer overflow
As of kernel commit commit a679064a7e9e8799177a64a31668a34a1bc6a4f1 Author: Matt Roper <matthew.d.roper@intel.com> Date: Fri Jan 30 16:22:37 2015 -0800 drm/i915: Switch planes from transitional helpers to full atomic helpers the kernel now checks for cursor coordinates that would result in integer overflow and returns -ERANGE, similar to the checking that was already done for other plane types. We update kms_cursor_crc here to reflect this small behavior change: * Check for success at extreme boundary conditions INT_MAX-{width,height} rather than INT_MAX * Add new check for success at SHRT_MAX; if the driver were to internally use short values and overflow, we could have the cursor reappear on the screen. * Add a test for failure with proper error code at INT_MAX-{width,height}+1 Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'lib/igt_gt.h')
0 files changed, 0 insertions, 0 deletions