Path: blob/21.2-virgl/src/intel/common/intel_defines.h
4547 views
/*1* Copyright © 2018 Intel Corporation2*3* Permission is hereby granted, free of charge, to any person obtaining4* a copy of this software and associated documentation files (the5* "Software"), to deal in the Software without restriction, including6* without limitation the rights to use, copy, modify, merge, publish,7* distribute, sublicense, and/or sell copies of the Software, and to8* permit persons to whom the Software is furnished to do so, subject to9* the following conditions:10*11* The above copyright notice and this permission notice (including the12* next paragraph) shall be included in all copies or substantial13* portions of the Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,16* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF17* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.18* IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE19* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION20* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION21* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.22*/2324#ifndef INTEL_DEFINES_H25#define INTEL_DEFINES_H2627#include "drm-uapi/i915_drm.h"2829#ifdef __cplusplus30extern "C" {31#endif32/**33* \file gen_defines.h34*35* Common defines we want to share between GL And Vulkan.36*/3738#define INTEL_CONTEXT_LOW_PRIORITY ((I915_CONTEXT_MIN_USER_PRIORITY-1)/2)39#define INTEL_CONTEXT_MEDIUM_PRIORITY (I915_CONTEXT_DEFAULT_PRIORITY)40#define INTEL_CONTEXT_HIGH_PRIORITY ((I915_CONTEXT_MAX_USER_PRIORITY+1)/2)41/* We don't have a strict notion of RT (yet, and when we do it is likely42* to be more complicated than a mere priority value!), but we can give43* it the absolute most priority available to us. By convention, this44* is higher than any other client, except for blocked interactive45* clients.46*/47#define INTEL_CONTEXT_REALTIME_PRIORITY I915_CONTEXT_MAX_USER_PRIORITY4849#ifdef __cplusplus50}51#endif5253#endif /* INTEL_DEFINES_H */545556