mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 01:38:23 +02:00
panvk: Move maxFramebuffer limits to defines
The exposed limits depend on the PAN_ARCH. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Marc Alcala Prieto <marc.alcalaprieto@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42047>
This commit is contained in:
parent
81daea6670
commit
e6ff12086e
2 changed files with 11 additions and 2 deletions
|
|
@ -28,6 +28,15 @@
|
|||
#include "pan_props.h"
|
||||
|
||||
#define MAX_VBS 16
|
||||
|
||||
#if PAN_ARCH < 10
|
||||
#define MAX_FRAMEBUFFER_DIMENSION (1 << 14)
|
||||
#elif PAN_ARCH < 11
|
||||
#define MAX_FRAMEBUFFER_DIMENSION (1 << 15)
|
||||
#else
|
||||
#define MAX_FRAMEBUFFER_DIMENSION (1 << 16)
|
||||
#endif
|
||||
|
||||
#define MAX_FRAMEBUFFER_LAYERS 256
|
||||
|
||||
struct panvk_cmd_buffer;
|
||||
|
|
|
|||
|
|
@ -932,8 +932,8 @@ panvk_per_arch(get_physical_device_properties)(
|
|||
.minInterpolationOffset = -0.5,
|
||||
.maxInterpolationOffset = 0.5,
|
||||
.subPixelInterpolationOffsetBits = 8,
|
||||
.maxFramebufferWidth = (1 << 14),
|
||||
.maxFramebufferHeight = (1 << 14),
|
||||
.maxFramebufferWidth = MAX_FRAMEBUFFER_DIMENSION,
|
||||
.maxFramebufferHeight = MAX_FRAMEBUFFER_DIMENSION,
|
||||
.maxFramebufferLayers = MAX_FRAMEBUFFER_LAYERS,
|
||||
.framebufferColorSampleCounts = sample_counts,
|
||||
.framebufferDepthSampleCounts = sample_counts,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue