17ec681f3Smrg/* 27ec681f3Smrg * Copyright © 2018 Intel Corporation 37ec681f3Smrg * 47ec681f3Smrg * Permission is hereby granted, free of charge, to any person obtaining 57ec681f3Smrg * a copy of this software and associated documentation files (the 67ec681f3Smrg * "Software"), to deal in the Software without restriction, including 77ec681f3Smrg * without limitation the rights to use, copy, modify, merge, publish, 87ec681f3Smrg * distribute, sublicense, and/or sell copies of the Software, and to 97ec681f3Smrg * permit persons to whom the Software is furnished to do so, subject to 107ec681f3Smrg * the following conditions: 117ec681f3Smrg * 127ec681f3Smrg * The above copyright notice and this permission notice (including the 137ec681f3Smrg * next paragraph) shall be included in all copies or substantial 147ec681f3Smrg * portions of the Software. 157ec681f3Smrg * 167ec681f3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 177ec681f3Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 187ec681f3Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 197ec681f3Smrg * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 207ec681f3Smrg * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 217ec681f3Smrg * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 227ec681f3Smrg * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 237ec681f3Smrg */ 247ec681f3Smrg 257ec681f3Smrg#ifndef INTEL_DEFINES_H 267ec681f3Smrg#define INTEL_DEFINES_H 277ec681f3Smrg 287ec681f3Smrg#include "drm-uapi/i915_drm.h" 297ec681f3Smrg 307ec681f3Smrg#ifdef __cplusplus 317ec681f3Smrgextern "C" { 327ec681f3Smrg#endif 337ec681f3Smrg/** 347ec681f3Smrg * \file gen_defines.h 357ec681f3Smrg * 367ec681f3Smrg * Common defines we want to share between GL And Vulkan. 377ec681f3Smrg */ 387ec681f3Smrg 397ec681f3Smrg#define INTEL_CONTEXT_LOW_PRIORITY ((I915_CONTEXT_MIN_USER_PRIORITY-1)/2) 407ec681f3Smrg#define INTEL_CONTEXT_MEDIUM_PRIORITY (I915_CONTEXT_DEFAULT_PRIORITY) 417ec681f3Smrg#define INTEL_CONTEXT_HIGH_PRIORITY ((I915_CONTEXT_MAX_USER_PRIORITY+1)/2) 427ec681f3Smrg/* We don't have a strict notion of RT (yet, and when we do it is likely 437ec681f3Smrg * to be more complicated than a mere priority value!), but we can give 447ec681f3Smrg * it the absolute most priority available to us. By convention, this 457ec681f3Smrg * is higher than any other client, except for blocked interactive 467ec681f3Smrg * clients. 477ec681f3Smrg */ 487ec681f3Smrg#define INTEL_CONTEXT_REALTIME_PRIORITY I915_CONTEXT_MAX_USER_PRIORITY 497ec681f3Smrg 507ec681f3Smrg#ifdef __cplusplus 517ec681f3Smrg} 527ec681f3Smrg#endif 537ec681f3Smrg 547ec681f3Smrg#endif /* INTEL_DEFINES_H */ 55