diff options
author | Chia-I Wu <[email protected]> | 2015-03-04 12:02:12 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-03-04 13:42:17 -0700 |
commit | af4cff5d6f74460d34bc10f9dc3a9f91e4e11f2d (patch) | |
tree | aebe4e1a63e32fa3629a7e7c1393ae025cfdb1a8 /src/gallium/drivers/ilo/intel_winsys.h | |
parent | 1e128e9b69c6336762a2b6ee5d356c763b9ae3b0 (diff) |
ilo: add some more winsys functions
Add intel_winsys_get_reset_stats(), intel_winsys_import_userptr(), and
intel_bo_map_async(). The latter two are stubs, but we are not going to use
them immediately either.
Diffstat (limited to 'src/gallium/drivers/ilo/intel_winsys.h')
-rw-r--r-- | src/gallium/drivers/ilo/intel_winsys.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/intel_winsys.h b/src/gallium/drivers/ilo/intel_winsys.h index 4ee35d7f5a9..5a199e2e819 100644 --- a/src/gallium/drivers/ilo/intel_winsys.h +++ b/src/gallium/drivers/ilo/intel_winsys.h @@ -112,6 +112,17 @@ intel_winsys_read_reg(struct intel_winsys *winsys, uint32_t reg, uint64_t *val); /** + * Return the numbers of submissions lost due to GPU reset. + * + * \param active_lost Number of lost active/guilty submissions + * \param pending_lost Number of lost pending/innocent submissions + */ +int +intel_winsys_get_reset_stats(struct intel_winsys *winsys, + struct intel_context *ctx, + uint32_t *active_lost, + uint32_t *pending_lost); +/** * Allocate a buffer object. * * \param name Informative description of the bo. @@ -142,6 +153,19 @@ intel_winsys_alloc_buffer(struct intel_winsys *winsys, } /** + * Create a bo from a user memory pointer. Both \p userptr and (\p pitch * \p + * height) must be page aligned. + */ +struct intel_bo * +intel_winsys_import_userptr(struct intel_winsys *winsys, + const char *name, + void *userptr, + enum intel_tiling_mode tiling, + unsigned long pitch, + unsigned long height, + unsigned long flags); + +/** * Create a bo from a winsys handle. */ struct intel_bo * @@ -223,12 +247,16 @@ intel_bo_unreference(struct intel_bo *bo); * sequential writes, but reads would be very slow. Callers always have a * linear view of the bo. * - * map_gtt_async() is similar to map_gtt(), except that it does not block. + * map_async() and map_gtt_async() work similar to map() and map_gtt() + * respectively, except that they do not block. */ void * intel_bo_map(struct intel_bo *bo, bool write_enable); void * +intel_bo_map_async(struct intel_bo *bo); + +void * intel_bo_map_gtt(struct intel_bo *bo); void * |