radv/video: move session defines to header as encode needs more.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32440>
This commit is contained in:
Dave Airlie 2024-07-29 16:14:31 +10:00 committed by Marge Bot
parent dd45e25dc3
commit ee9ec055d9
2 changed files with 4 additions and 4 deletions

View file

@ -1039,10 +1039,6 @@ radv_GetPhysicalDeviceVideoFormatPropertiesKHR(VkPhysicalDevice physicalDevice,
return vk_outarray_status(&out);
}
#define RADV_BIND_SESSION_CTX 0
#define RADV_BIND_DECODER_CTX 1
#define RADV_BIND_INTRA_ONLY 2
VKAPI_ATTR VkResult VKAPI_CALL
radv_GetVideoSessionMemoryRequirementsKHR(VkDevice _device, VkVideoSessionKHR videoSession,
uint32_t *pMemoryRequirementsCount,

View file

@ -26,6 +26,10 @@ struct radv_image_create_info;
#define RADV_ENC_MAX_RATE_LAYER 4
#define RADV_BIND_SESSION_CTX 0
#define RADV_BIND_DECODER_CTX 1
#define RADV_BIND_INTRA_ONLY 2
struct radv_vid_mem {
struct radv_device_memory *mem;
VkDeviceSize offset;