intel: Add and use intel_gem_destroy_context()
Again sharing the same function across all Intel drivers. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18974>
This commit is contained in:
committed by
Marge Bot
parent
f928ead625
commit
6ae6921216
@@ -68,6 +68,15 @@ intel_gem_create_context(int fd, uint32_t *context_id)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
intel_gem_destroy_context(int fd, uint32_t context_id)
|
||||
{
|
||||
struct drm_i915_gem_context_destroy destroy = {
|
||||
.ctx_id = context_id,
|
||||
};
|
||||
return intel_ioctl(fd, DRM_IOCTL_I915_GEM_CONTEXT_DESTROY, &destroy) == 0;
|
||||
}
|
||||
|
||||
bool
|
||||
intel_gem_create_context_engines(int fd,
|
||||
const struct intel_query_engine_info *info,
|
||||
|
||||
@@ -160,6 +160,7 @@ intel_i915_query_alloc(int fd, uint64_t query_id, int32_t *query_length)
|
||||
bool intel_gem_supports_syncobj_wait(int fd);
|
||||
|
||||
bool intel_gem_create_context(int fd, uint32_t *context_id);
|
||||
bool intel_gem_destroy_context(int fd, uint32_t context_id);
|
||||
bool
|
||||
intel_gem_create_context_engines(int fd,
|
||||
const struct intel_query_engine_info *info,
|
||||
|
||||
Reference in New Issue
Block a user