* is returned.
*/
if (physical_device->has_context_priority) {
- int err =
- anv_gem_set_context_priority(device, vk_priority_to_gen(priority));
+ int err = anv_gem_set_context_param(device->fd, device->context_id,
+ I915_CONTEXT_PARAM_PRIORITY,
+ vk_priority_to_gen(priority));
if (err != 0 && priority > VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT) {
result = vk_error(VK_ERROR_NOT_PERMITTED_EXT);
goto fail_fd;
return swizzled;
}
-int
-anv_gem_set_context_priority(struct anv_device *device,
- int priority)
-{
- return anv_gem_set_context_param(device->fd, device->context_id,
- I915_CONTEXT_PARAM_PRIORITY,
- priority);
-}
-
bool
anv_gem_has_context_priority(int fd)
{
uint32_t stride, uint32_t tiling);
int anv_gem_create_context(struct anv_device *device);
bool anv_gem_has_context_priority(int fd);
-int anv_gem_set_context_priority(struct anv_device *device, int priority);
int anv_gem_destroy_context(struct anv_device *device, int context);
int anv_gem_set_context_param(int fd, int context, uint32_t param,
uint64_t value);