vulkan: Add a vk_limits.h file for runtime limits
Individual driver limits may be smaller than these. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17328>
This commit is contained in:

committed by
Marge Bot

parent
e840ba9ed8
commit
6b6c1a7ddd
@@ -25,6 +25,7 @@
|
||||
#define VK_COMMAND_BUFFER_H
|
||||
|
||||
#include "vk_cmd_queue.h"
|
||||
#include "vk_limits.h"
|
||||
#include "vk_object.h"
|
||||
#include "util/list.h"
|
||||
#include "util/u_dynarray.h"
|
||||
@@ -38,11 +39,6 @@ struct vk_framebuffer;
|
||||
struct vk_image_view;
|
||||
struct vk_render_pass;
|
||||
|
||||
/* Since VkSubpassDescription2::viewMask is a 32-bit integer, there are a
|
||||
* maximum of 32 possible views.
|
||||
*/
|
||||
#define MESA_VK_MAX_MULTIVIEW_VIEW_COUNT 32
|
||||
|
||||
struct vk_attachment_view_state {
|
||||
VkImageLayout layout;
|
||||
VkImageLayout stencil_layout;
|
||||
|
32
src/vulkan/runtime/vk_limits.h
Normal file
32
src/vulkan/runtime/vk_limits.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright © 2022 Collabora, LTD
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef VK_LIMITS_H
|
||||
#define VK_LIMITS_H
|
||||
|
||||
/* Since VkSubpassDescription2::viewMask is a 32-bit integer, there are a
|
||||
* maximum of 32 possible views.
|
||||
*/
|
||||
#define MESA_VK_MAX_MULTIVIEW_VIEW_COUNT 32
|
||||
|
||||
#endif /* VK_LIMITS_H */
|
Reference in New Issue
Block a user