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:

committed by
Kenneth Graunke

parent
748f603390
commit
ddd716e746
@@ -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.
|
||||
|
Reference in New Issue
Block a user