diff options
author | Jon Bloomfield <jon.bloomfield@intel.com> | 2018-08-01 19:45:50 +0300 |
---|---|---|
committer | Jon Bloomfield <jon.bloomfield@intel.com> | 2019-11-05 22:37:54 +0300 |
commit | 435e8fc059dbe0eec823a75c22da2972390ba9e0 (patch) | |
tree | 17a5ec06632e3e96e0fd0d57255b87dd7b781376 /drivers/gpu/drm/i915/i915_utils.h | |
parent | 4f7af1948abcb18b4772fe1bcd84d7d27d96258c (diff) | |
download | linux-435e8fc059dbe0eec823a75c22da2972390ba9e0.tar.xz |
drm/i915: Allow parsing of unsized batches
In "drm/i915: Add support for mandatory cmdparsing" we introduced the
concept of mandatory parsing. This allows the cmdparser to be invoked
even when user passes batch_len=0 to the execbuf ioctl's.
However, the cmdparser needs to know the extents of the buffer being
scanned. Refactor the code to ensure the cmdparser uses the actual
object size, instead of the incoming length, if user passes 0.
Signed-off-by: Jon Bloomfield <jon.bloomfield@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Tyler Hicks <tyhicks@canonical.com>
Reviewed-by: Chris Wilson <chris.p.wilson@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_utils.h')
0 files changed, 0 insertions, 0 deletions