mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-13 02:46:23 +00:00
lib: Document that gem_mmap__{cpu,gtt,wc} return NULL on failure
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
9792e7b580
commit
8986bbc0ce
@ -456,7 +456,7 @@ void gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
|
|||||||
* This functions wraps up procedure to establish a memory mapping through the
|
* This functions wraps up procedure to establish a memory mapping through the
|
||||||
* GTT.
|
* GTT.
|
||||||
*
|
*
|
||||||
* Returns: A pointer to the created memory mapping.
|
* Returns: A pointer to the created memory mapping, NULL on failure.
|
||||||
*/
|
*/
|
||||||
void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot)
|
void *gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot)
|
||||||
{
|
{
|
||||||
@ -535,7 +535,7 @@ bool gem_mmap__has_wc(int fd)
|
|||||||
* bypassing the GTT system agent (i.e. there is no automatic tiling of
|
* bypassing the GTT system agent (i.e. there is no automatic tiling of
|
||||||
* the mmapping through the fence registers).
|
* the mmapping through the fence registers).
|
||||||
*
|
*
|
||||||
* Returns: A pointer to the created memory mapping.
|
* Returns: A pointer to the created memory mapping, NULL on failure.
|
||||||
*/
|
*/
|
||||||
void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
||||||
{
|
{
|
||||||
@ -569,7 +569,7 @@ void *gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsi
|
|||||||
* This functions wraps up procedure to establish a memory mapping through
|
* This functions wraps up procedure to establish a memory mapping through
|
||||||
* direct cpu access, bypassing the gpu completely.
|
* direct cpu access, bypassing the gpu completely.
|
||||||
*
|
*
|
||||||
* Returns: A pointer to the created memory mapping.
|
* Returns: A pointer to the created memory mapping, NULL on failure.
|
||||||
*/
|
*/
|
||||||
void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
void *gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user