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
@@ -302,16 +302,6 @@ anv_gem_has_context_priority(int fd, VkQueueGlobalPriorityKHR priority)
|
||||
priority);
|
||||
}
|
||||
|
||||
int
|
||||
anv_gem_destroy_context(struct anv_device *device, int context)
|
||||
{
|
||||
struct drm_i915_gem_context_destroy destroy = {
|
||||
.ctx_id = context,
|
||||
};
|
||||
|
||||
return intel_ioctl(device->fd, DRM_IOCTL_I915_GEM_CONTEXT_DESTROY, &destroy);
|
||||
}
|
||||
|
||||
static int
|
||||
vk_priority_to_i915(VkQueueGlobalPriorityKHR priority)
|
||||
{
|
||||
|
Reference in New Issue
Block a user