diff options
author | Vanshidhar Konda <vanshidhar.r.konda@intel.com> | 2019-12-18 11:39:10 -0800 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2020-02-13 10:20:45 +0200 |
commit | ca614f87196204fbd19b69e691360d8049eccfe0 (patch) | |
tree | 051767c3df20903a55ba44c2039ef2c6d1ee61fd /lib/igt_draw.h | |
parent | 0e249d67f661e07d6d23dfcca9120a2d5b93bdbe (diff) |
lib/igt_draw: Refactor get_tiling calls
Simplify the number of places from which gem_get_tiling method is called
and call it only if the device has support in hardware for tiling.
For consistency also fix up the gem_mmap__cpu() prot argument in
draw_rect_mmap_cpu(). Atm, gem_mmap__cpu() ignores this, however the
implementation of it may change, so make sure we pass the correct
protection flags.
v2:
- Use gem_available_fences() to check for HW detiling.
v3: (Matt)
- Fix docbook for draw_rect_render()
- Remove unused swizzle params from the blt/render draw funcs.
- Describe the gem_mmap__cpu() prot argument fix in the commit log.
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Vanshidhar Konda <vanshidhar.r.konda@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/igt_draw.h')
-rw-r--r-- | lib/igt_draw.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/igt_draw.h b/lib/igt_draw.h index b030131e..ec146754 100644 --- a/lib/igt_draw.h +++ b/lib/igt_draw.h @@ -52,8 +52,9 @@ const char *igt_draw_get_method_name(enum igt_draw_method method); void igt_draw_rect(int fd, drm_intel_bufmgr *bufmgr, drm_intel_context *context, uint32_t buf_handle, uint32_t buf_size, uint32_t buf_stride, - enum igt_draw_method method, int rect_x, int rect_y, - int rect_w, int rect_h, uint32_t color, int bpp); + uint32_t tiling, enum igt_draw_method method, + int rect_x, int rect_y, int rect_w, int rect_h, + uint32_t color, int bpp); void igt_draw_rect_fb(int fd, drm_intel_bufmgr *bufmgr, drm_intel_context *context, struct igt_fb *fb, |