iris: support dmabuf imports with offsets

this adds support for imports where the image data begins at an offset
from the start of the buffer, as used in h/x264

fixes kwg/mesa#47

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Mike Blumenkrantz
2019-04-30 14:51:52 -04:00
committed by Kenneth Graunke
parent 748f603390
commit ddd716e746
4 changed files with 12 additions and 12 deletions

View File

@@ -68,6 +68,9 @@ struct iris_resource {
/** Backing storage for the resource */
struct iris_bo *bo;
/** offset at which data starts in the BO */
uint64_t offset;
/**
* A bitfield of PIPE_BIND_* indicating how this resource was bound
* in the past. Only meaningful for PIPE_BUFFER; used for flushing.