Linux Audio

Check our new training course

Loading...
v5.4
  1/* SPDX-License-Identifier: GPL-2.0 OR MIT */
  2/**********************************************************
  3 * Copyright 2007-2015 VMware, Inc.
  4 *
  5 * Permission is hereby granted, free of charge, to any person
  6 * obtaining a copy of this software and associated documentation
  7 * files (the "Software"), to deal in the Software without
  8 * restriction, including without limitation the rights to use, copy,
  9 * modify, merge, publish, distribute, sublicense, and/or sell copies
 10 * of the Software, and to permit persons to whom the Software is
 11 * furnished to do so, subject to the following conditions:
 12 *
 13 * The above copyright notice and this permission notice shall be
 14 * included in all copies or substantial portions of the Software.
 15 *
 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 20 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 21 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 23 * SOFTWARE.
 24 *
 25 **********************************************************/
 26
 27/*
 28 * svga3d_limits.h --
 29 *
 30 *       SVGA 3d hardware limits
 31 */
 32
 33#ifndef _SVGA3D_LIMITS_H_
 34#define _SVGA3D_LIMITS_H_
 35
 36#define INCLUDE_ALLOW_MODULE
 37#define INCLUDE_ALLOW_USERLEVEL
 38#define INCLUDE_ALLOW_VMCORE
 39
 40#include "includeCheck.h"
 41
 42#define SVGA3D_NUM_CLIPPLANES                   6
 43#define SVGA3D_MAX_RENDER_TARGETS               8
 44#define SVGA3D_MAX_SIMULTANEOUS_RENDER_TARGETS  (SVGA3D_MAX_RENDER_TARGETS)
 45#define SVGA3D_MAX_UAVIEWS                      8
 46#define SVGA3D_MAX_CONTEXT_IDS                  256
 47#define SVGA3D_MAX_SURFACE_IDS                  (32 * 1024)
 48
 49/*
 50 * Maximum ID a shader can be assigned on a given context.
 51 */
 52#define SVGA3D_MAX_SHADERIDS                    5000
 53/*
 54 * Maximum number of shaders of a given type that can be defined
 55 * (including all contexts).
 56 */
 57#define SVGA3D_MAX_SIMULTANEOUS_SHADERS         20000
 58
 59#define SVGA3D_NUM_TEXTURE_UNITS                32
 60#define SVGA3D_NUM_LIGHTS                       8
 61
 62/*
 63 * Maximum size in dwords of shader text the SVGA device will allow.
 64 * Currently 8 MB.
 65 */
 66#define SVGA3D_MAX_SHADER_MEMORY_BYTES (8 * 1024 * 1024)
 67#define SVGA3D_MAX_SHADER_MEMORY  (SVGA3D_MAX_SHADER_MEMORY_BYTES / \
 68                                   sizeof(uint32))
 69
 70#define SVGA3D_MAX_CLIP_PLANES    6
 71
 72/*
 73 * This is the limit to the number of fixed-function texture
 74 * transforms and texture coordinates we can support. It does *not*
 75 * correspond to the number of texture image units (samplers) we
 76 * support!
 77 */
 78#define SVGA3D_MAX_TEXTURE_COORDS 8
 79
 80/*
 81 * Number of faces in a cubemap.
 82 */
 83#define SVGA3D_MAX_SURFACE_FACES 6
 84
 85/*
 86 * Maximum number of array indexes in a GB surface (with DX enabled).
 87 */
 88#define SVGA3D_MAX_SURFACE_ARRAYSIZE 512
 89
 90/*
 91 * The maximum number of vertex arrays we're guaranteed to support in
 92 * SVGA_3D_CMD_DRAWPRIMITIVES.
 93 */
 94#define SVGA3D_MAX_VERTEX_ARRAYS   32
 95
 96/*
 97 * The maximum number of primitive ranges we're guaranteed to support
 98 * in SVGA_3D_CMD_DRAWPRIMITIVES.
 99 */
100#define SVGA3D_MAX_DRAW_PRIMITIVE_RANGES 32
101
102#endif /* _SVGA3D_LIMITS_H_ */
v4.17
 
 1/**********************************************************
 2 * Copyright 2007-2015 VMware, Inc.  All rights reserved.
 3 *
 4 * Permission is hereby granted, free of charge, to any person
 5 * obtaining a copy of this software and associated documentation
 6 * files (the "Software"), to deal in the Software without
 7 * restriction, including without limitation the rights to use, copy,
 8 * modify, merge, publish, distribute, sublicense, and/or sell copies
 9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial 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 OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 *
24 **********************************************************/
25
26/*
27 * svga3d_limits.h --
28 *
29 *       SVGA 3d hardware limits
30 */
31
32#ifndef _SVGA3D_LIMITS_H_
33#define _SVGA3D_LIMITS_H_
34
35#define INCLUDE_ALLOW_MODULE
36#define INCLUDE_ALLOW_USERLEVEL
37#define INCLUDE_ALLOW_VMCORE
38
39#include "includeCheck.h"
40
41#define SVGA3D_NUM_CLIPPLANES                   6
42#define SVGA3D_MAX_RENDER_TARGETS               8
43#define SVGA3D_MAX_SIMULTANEOUS_RENDER_TARGETS  (SVGA3D_MAX_RENDER_TARGETS)
44#define SVGA3D_MAX_UAVIEWS                      8
45#define SVGA3D_MAX_CONTEXT_IDS                  256
46#define SVGA3D_MAX_SURFACE_IDS                  (32 * 1024)
47
48/*
49 * Maximum ID a shader can be assigned on a given context.
50 */
51#define SVGA3D_MAX_SHADERIDS                    5000
52/*
53 * Maximum number of shaders of a given type that can be defined
54 * (including all contexts).
55 */
56#define SVGA3D_MAX_SIMULTANEOUS_SHADERS         20000
57
58#define SVGA3D_NUM_TEXTURE_UNITS                32
59#define SVGA3D_NUM_LIGHTS                       8
60
61/*
62 * Maximum size in dwords of shader text the SVGA device will allow.
63 * Currently 8 MB.
64 */
65#define SVGA3D_MAX_SHADER_MEMORY  (8 * 1024 * 1024 / sizeof(uint32))
 
 
66
67#define SVGA3D_MAX_CLIP_PLANES    6
68
69/*
70 * This is the limit to the number of fixed-function texture
71 * transforms and texture coordinates we can support. It does *not*
72 * correspond to the number of texture image units (samplers) we
73 * support!
74 */
75#define SVGA3D_MAX_TEXTURE_COORDS 8
76
77/*
78 * Number of faces in a cubemap.
79 */
80#define SVGA3D_MAX_SURFACE_FACES 6
81
82/*
83 * Maximum number of array indexes in a GB surface (with DX enabled).
84 */
85#define SVGA3D_MAX_SURFACE_ARRAYSIZE 512
86
87/*
88 * The maximum number of vertex arrays we're guaranteed to support in
89 * SVGA_3D_CMD_DRAWPRIMITIVES.
90 */
91#define SVGA3D_MAX_VERTEX_ARRAYS   32
92
93/*
94 * The maximum number of primitive ranges we're guaranteed to support
95 * in SVGA_3D_CMD_DRAWPRIMITIVES.
96 */
97#define SVGA3D_MAX_DRAW_PRIMITIVE_RANGES 32
98
99#endif /* _SVGA3D_LIMITS_H_ */