diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2020-01-17 15:14:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-01-17 21:12:42 +0000 |
commit | 621c5d83db5dc573dedcb9f5cc9aa88cb1553a61 (patch) | |
tree | 2e87d617fffa247b42e8244cef6d7065299e5e8f /lib/gen6_render.h | |
parent | 1b2816124ec3dbd53b81725d39292f45d41d895b (diff) |
lib/intel_bufops: Introduce buffer operations
Different GENs supports different tile surfaces. Older GENs
have HW fences to allow X / Y surface tiling / detiling.
Newer GENs have to tile / detile such surface in software.
To make test developer life easier this code adds buffer
operations (short buf_ops) to use appropriate functions allowing
copying linear buffer to BO and from BO to linear buffer
regardless GPU generation and tiling/swizzling within BO. For GENs
having fences support preference is to use them if they are available
(X / Y tiling is probed on buf_ops initialization).
Note: on Gen2 code supports only HW tiling at the moment.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Katarzyna Dec <katarzyna.dec@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/gen6_render.h')
0 files changed, 0 insertions, 0 deletions