linux/drivers/gpu/drm/vmwgfx/device_include/svga3d_devcaps.h

/* SPDX-License-Identifier: GPL-2.0 OR MIT */
/*
 * Copyright 1998-2021 VMware, Inc.
 *
 * 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 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.
 *
 */

/*
 * svga3d_devcaps.h --
 *
 *    SVGA 3d caps definitions
 */



#ifndef _SVGA3D_DEVCAPS_H_
#define _SVGA3D_DEVCAPS_H_

#include "svga3d_types.h"

#define SVGA3D_MAKE_HWVERSION(major, minor)
#define SVGA3D_MAJOR_HWVERSION(version)
#define SVGA3D_MINOR_HWVERSION(version)

SVGA3dHardwareVersion;

SVGA3dDevCapIndex;

#define SVGA3D_DEVCAP_INVALID
#define SVGA3D_DEVCAP_3D
#define SVGA3D_DEVCAP_MAX_LIGHTS

#define SVGA3D_DEVCAP_MAX_TEXTURES
#define SVGA3D_DEVCAP_MAX_CLIP_PLANES
#define SVGA3D_DEVCAP_VERTEX_SHADER_VERSION
#define SVGA3D_DEVCAP_VERTEX_SHADER
#define SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION
#define SVGA3D_DEVCAP_FRAGMENT_SHADER
#define SVGA3D_DEVCAP_MAX_RENDER_TARGETS
#define SVGA3D_DEVCAP_S23E8_TEXTURES
#define SVGA3D_DEVCAP_S10E5_TEXTURES
#define SVGA3D_DEVCAP_MAX_FIXED_VERTEXBLEND
#define SVGA3D_DEVCAP_D16_BUFFER_FORMAT
#define SVGA3D_DEVCAP_D24S8_BUFFER_FORMAT
#define SVGA3D_DEVCAP_D24X8_BUFFER_FORMAT
#define SVGA3D_DEVCAP_QUERY_TYPES
#define SVGA3D_DEVCAP_TEXTURE_GRADIENT_SAMPLING
#define SVGA3D_DEVCAP_MAX_POINT_SIZE
#define SVGA3D_DEVCAP_MAX_SHADER_TEXTURES
#define SVGA3D_DEVCAP_MAX_TEXTURE_WIDTH
#define SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT
#define SVGA3D_DEVCAP_MAX_VOLUME_EXTENT
#define SVGA3D_DEVCAP_MAX_TEXTURE_REPEAT
#define SVGA3D_DEVCAP_MAX_TEXTURE_ASPECT_RATIO
#define SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY
#define SVGA3D_DEVCAP_MAX_PRIMITIVE_COUNT
#define SVGA3D_DEVCAP_MAX_VERTEX_INDEX
#define SVGA3D_DEVCAP_MAX_VERTEX_SHADER_INSTRUCTIONS
#define SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_INSTRUCTIONS
#define SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEMPS
#define SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS
#define SVGA3D_DEVCAP_TEXTURE_OPS
#define SVGA3D_DEVCAP_SURFACEFMT_X8R8G8B8
#define SVGA3D_DEVCAP_SURFACEFMT_A8R8G8B8
#define SVGA3D_DEVCAP_SURFACEFMT_A2R10G10B10
#define SVGA3D_DEVCAP_SURFACEFMT_X1R5G5B5
#define SVGA3D_DEVCAP_SURFACEFMT_A1R5G5B5
#define SVGA3D_DEVCAP_SURFACEFMT_A4R4G4B4
#define SVGA3D_DEVCAP_SURFACEFMT_R5G6B5
#define SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE16
#define SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8_ALPHA8
#define SVGA3D_DEVCAP_SURFACEFMT_ALPHA8
#define SVGA3D_DEVCAP_SURFACEFMT_LUMINANCE8
#define SVGA3D_DEVCAP_SURFACEFMT_Z_D16
#define SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8
#define SVGA3D_DEVCAP_SURFACEFMT_Z_D24X8
#define SVGA3D_DEVCAP_SURFACEFMT_DXT1
#define SVGA3D_DEVCAP_SURFACEFMT_DXT2
#define SVGA3D_DEVCAP_SURFACEFMT_DXT3
#define SVGA3D_DEVCAP_SURFACEFMT_DXT4
#define SVGA3D_DEVCAP_SURFACEFMT_DXT5
#define SVGA3D_DEVCAP_SURFACEFMT_BUMPX8L8V8U8
#define SVGA3D_DEVCAP_SURFACEFMT_A2W10V10U10
#define SVGA3D_DEVCAP_SURFACEFMT_BUMPU8V8
#define SVGA3D_DEVCAP_SURFACEFMT_Q8W8V8U8
#define SVGA3D_DEVCAP_SURFACEFMT_CxV8U8
#define SVGA3D_DEVCAP_SURFACEFMT_R_S10E5
#define SVGA3D_DEVCAP_SURFACEFMT_R_S23E8
#define SVGA3D_DEVCAP_SURFACEFMT_RG_S10E5
#define SVGA3D_DEVCAP_SURFACEFMT_RG_S23E8
#define SVGA3D_DEVCAP_SURFACEFMT_ARGB_S10E5
#define SVGA3D_DEVCAP_SURFACEFMT_ARGB_S23E8

#define SVGA3D_DEVCAP_MISSING62

#define SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEXTURES

#define SVGA3D_DEVCAP_MAX_SIMULTANEOUS_RENDER_TARGETS

#define SVGA3D_DEVCAP_SURFACEFMT_V16U16
#define SVGA3D_DEVCAP_SURFACEFMT_G16R16
#define SVGA3D_DEVCAP_SURFACEFMT_A16B16G16R16
#define SVGA3D_DEVCAP_SURFACEFMT_UYVY
#define SVGA3D_DEVCAP_SURFACEFMT_YUY2

#define SVGA3D_DEVCAP_DEAD4
#define SVGA3D_DEVCAP_DEAD5
#define SVGA3D_DEVCAP_DEAD7
#define SVGA3D_DEVCAP_DEAD6

#define SVGA3D_DEVCAP_AUTOGENMIPMAPS
#define SVGA3D_DEVCAP_SURFACEFMT_NV12
#define SVGA3D_DEVCAP_DEAD10

#define SVGA3D_DEVCAP_MAX_CONTEXT_IDS

#define SVGA3D_DEVCAP_MAX_SURFACE_IDS

#define SVGA3D_DEVCAP_SURFACEFMT_Z_DF16
#define SVGA3D_DEVCAP_SURFACEFMT_Z_DF24
#define SVGA3D_DEVCAP_SURFACEFMT_Z_D24S8_INT

#define SVGA3D_DEVCAP_SURFACEFMT_ATI1
#define SVGA3D_DEVCAP_SURFACEFMT_ATI2

#define SVGA3D_DEVCAP_DEAD1
#define SVGA3D_DEVCAP_DEAD8
#define SVGA3D_DEVCAP_DEAD9

#define SVGA3D_DEVCAP_LINE_AA
#define SVGA3D_DEVCAP_LINE_STIPPLE
#define SVGA3D_DEVCAP_MAX_LINE_WIDTH
#define SVGA3D_DEVCAP_MAX_AA_LINE_WIDTH

#define SVGA3D_DEVCAP_SURFACEFMT_YV12

#define SVGA3D_DEVCAP_DEAD3

#define SVGA3D_DEVCAP_TS_COLOR_KEY

#define SVGA3D_DEVCAP_DEAD2

#define SVGA3D_DEVCAP_DXCONTEXT

#define SVGA3D_DEVCAP_DEAD11

#define SVGA3D_DEVCAP_DX_MAX_VERTEXBUFFERS

#define SVGA3D_DEVCAP_DX_MAX_CONSTANT_BUFFERS

#define SVGA3D_DEVCAP_DX_PROVOKING_VERTEX

#define SVGA3D_DEVCAP_DXFMT_X8R8G8B8
#define SVGA3D_DEVCAP_DXFMT_A8R8G8B8
#define SVGA3D_DEVCAP_DXFMT_R5G6B5
#define SVGA3D_DEVCAP_DXFMT_X1R5G5B5
#define SVGA3D_DEVCAP_DXFMT_A1R5G5B5
#define SVGA3D_DEVCAP_DXFMT_A4R4G4B4
#define SVGA3D_DEVCAP_DXFMT_Z_D32
#define SVGA3D_DEVCAP_DXFMT_Z_D16
#define SVGA3D_DEVCAP_DXFMT_Z_D24S8
#define SVGA3D_DEVCAP_DXFMT_Z_D15S1
#define SVGA3D_DEVCAP_DXFMT_LUMINANCE8
#define SVGA3D_DEVCAP_DXFMT_LUMINANCE4_ALPHA4
#define SVGA3D_DEVCAP_DXFMT_LUMINANCE16
#define SVGA3D_DEVCAP_DXFMT_LUMINANCE8_ALPHA8
#define SVGA3D_DEVCAP_DXFMT_DXT1
#define SVGA3D_DEVCAP_DXFMT_DXT2
#define SVGA3D_DEVCAP_DXFMT_DXT3
#define SVGA3D_DEVCAP_DXFMT_DXT4
#define SVGA3D_DEVCAP_DXFMT_DXT5
#define SVGA3D_DEVCAP_DXFMT_BUMPU8V8
#define SVGA3D_DEVCAP_DXFMT_BUMPL6V5U5
#define SVGA3D_DEVCAP_DXFMT_BUMPX8L8V8U8
#define SVGA3D_DEVCAP_DXFMT_FORMAT_DEAD1
#define SVGA3D_DEVCAP_DXFMT_ARGB_S10E5
#define SVGA3D_DEVCAP_DXFMT_ARGB_S23E8
#define SVGA3D_DEVCAP_DXFMT_A2R10G10B10
#define SVGA3D_DEVCAP_DXFMT_V8U8
#define SVGA3D_DEVCAP_DXFMT_Q8W8V8U8
#define SVGA3D_DEVCAP_DXFMT_CxV8U8
#define SVGA3D_DEVCAP_DXFMT_X8L8V8U8
#define SVGA3D_DEVCAP_DXFMT_A2W10V10U10
#define SVGA3D_DEVCAP_DXFMT_ALPHA8
#define SVGA3D_DEVCAP_DXFMT_R_S10E5
#define SVGA3D_DEVCAP_DXFMT_R_S23E8
#define SVGA3D_DEVCAP_DXFMT_RG_S10E5
#define SVGA3D_DEVCAP_DXFMT_RG_S23E8
#define SVGA3D_DEVCAP_DXFMT_BUFFER
#define SVGA3D_DEVCAP_DXFMT_Z_D24X8
#define SVGA3D_DEVCAP_DXFMT_V16U16
#define SVGA3D_DEVCAP_DXFMT_G16R16
#define SVGA3D_DEVCAP_DXFMT_A16B16G16R16
#define SVGA3D_DEVCAP_DXFMT_UYVY
#define SVGA3D_DEVCAP_DXFMT_YUY2
#define SVGA3D_DEVCAP_DXFMT_NV12
#define SVGA3D_DEVCAP_DXFMT_FORMAT_DEAD2
#define SVGA3D_DEVCAP_DXFMT_R32G32B32A32_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R32G32B32A32_UINT
#define SVGA3D_DEVCAP_DXFMT_R32G32B32A32_SINT
#define SVGA3D_DEVCAP_DXFMT_R32G32B32_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R32G32B32_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R32G32B32_UINT
#define SVGA3D_DEVCAP_DXFMT_R32G32B32_SINT
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_UINT
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_SNORM
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_SINT
#define SVGA3D_DEVCAP_DXFMT_R32G32_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R32G32_UINT
#define SVGA3D_DEVCAP_DXFMT_R32G32_SINT
#define SVGA3D_DEVCAP_DXFMT_R32G8X24_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_D32_FLOAT_S8X24_UINT
#define SVGA3D_DEVCAP_DXFMT_R32_FLOAT_X8X24
#define SVGA3D_DEVCAP_DXFMT_X32_G8X24_UINT
#define SVGA3D_DEVCAP_DXFMT_R10G10B10A2_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R10G10B10A2_UINT
#define SVGA3D_DEVCAP_DXFMT_R11G11B10_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_UNORM
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_UINT
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_SINT
#define SVGA3D_DEVCAP_DXFMT_R16G16_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R16G16_UINT
#define SVGA3D_DEVCAP_DXFMT_R16G16_SINT
#define SVGA3D_DEVCAP_DXFMT_R32_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_D32_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R32_UINT
#define SVGA3D_DEVCAP_DXFMT_R32_SINT
#define SVGA3D_DEVCAP_DXFMT_R24G8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_D24_UNORM_S8_UINT
#define SVGA3D_DEVCAP_DXFMT_R24_UNORM_X8
#define SVGA3D_DEVCAP_DXFMT_X24_G8_UINT
#define SVGA3D_DEVCAP_DXFMT_R8G8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R8G8_UNORM
#define SVGA3D_DEVCAP_DXFMT_R8G8_UINT
#define SVGA3D_DEVCAP_DXFMT_R8G8_SINT
#define SVGA3D_DEVCAP_DXFMT_R16_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R16_UNORM
#define SVGA3D_DEVCAP_DXFMT_R16_UINT
#define SVGA3D_DEVCAP_DXFMT_R16_SNORM
#define SVGA3D_DEVCAP_DXFMT_R16_SINT
#define SVGA3D_DEVCAP_DXFMT_R8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_R8_UNORM
#define SVGA3D_DEVCAP_DXFMT_R8_UINT
#define SVGA3D_DEVCAP_DXFMT_R8_SNORM
#define SVGA3D_DEVCAP_DXFMT_R8_SINT
#define SVGA3D_DEVCAP_DXFMT_P8
#define SVGA3D_DEVCAP_DXFMT_R9G9B9E5_SHAREDEXP
#define SVGA3D_DEVCAP_DXFMT_R8G8_B8G8_UNORM
#define SVGA3D_DEVCAP_DXFMT_G8R8_G8B8_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC1_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_BC1_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_BC2_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_BC2_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_BC3_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_BC3_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_BC4_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_ATI1
#define SVGA3D_DEVCAP_DXFMT_BC4_SNORM
#define SVGA3D_DEVCAP_DXFMT_BC5_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_ATI2
#define SVGA3D_DEVCAP_DXFMT_BC5_SNORM
#define SVGA3D_DEVCAP_DXFMT_R10G10B10_XR_BIAS_A2_UNORM
#define SVGA3D_DEVCAP_DXFMT_B8G8R8A8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_B8G8R8A8_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_B8G8R8X8_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_B8G8R8X8_UNORM_SRGB
#define SVGA3D_DEVCAP_DXFMT_Z_DF16
#define SVGA3D_DEVCAP_DXFMT_Z_DF24
#define SVGA3D_DEVCAP_DXFMT_Z_D24S8_INT
#define SVGA3D_DEVCAP_DXFMT_YV12
#define SVGA3D_DEVCAP_DXFMT_R32G32B32A32_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R16G16B16A16_UNORM
#define SVGA3D_DEVCAP_DXFMT_R32G32_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R10G10B10A2_UNORM
#define SVGA3D_DEVCAP_DXFMT_R8G8B8A8_SNORM
#define SVGA3D_DEVCAP_DXFMT_R16G16_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R16G16_UNORM
#define SVGA3D_DEVCAP_DXFMT_R16G16_SNORM
#define SVGA3D_DEVCAP_DXFMT_R32_FLOAT
#define SVGA3D_DEVCAP_DXFMT_R8G8_SNORM
#define SVGA3D_DEVCAP_DXFMT_R16_FLOAT
#define SVGA3D_DEVCAP_DXFMT_D16_UNORM
#define SVGA3D_DEVCAP_DXFMT_A8_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC1_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC2_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC3_UNORM
#define SVGA3D_DEVCAP_DXFMT_B5G6R5_UNORM
#define SVGA3D_DEVCAP_DXFMT_B5G5R5A1_UNORM
#define SVGA3D_DEVCAP_DXFMT_B8G8R8A8_UNORM
#define SVGA3D_DEVCAP_DXFMT_B8G8R8X8_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC4_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC5_UNORM

#define SVGA3D_DEVCAP_SM41
#define SVGA3D_DEVCAP_MULTISAMPLE_2X
#define SVGA3D_DEVCAP_MULTISAMPLE_4X

#define SVGA3D_DEVCAP_MS_FULL_QUALITY

#define SVGA3D_DEVCAP_LOGICOPS

#define SVGA3D_DEVCAP_LOGIC_BLENDOPS

#define SVGA3D_DEVCAP_DEAD12

#define SVGA3D_DEVCAP_DXFMT_BC6H_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_BC6H_UF16
#define SVGA3D_DEVCAP_DXFMT_BC6H_SF16
#define SVGA3D_DEVCAP_DXFMT_BC7_TYPELESS
#define SVGA3D_DEVCAP_DXFMT_BC7_UNORM
#define SVGA3D_DEVCAP_DXFMT_BC7_UNORM_SRGB

#define SVGA3D_DEVCAP_DEAD13

#define SVGA3D_DEVCAP_SM5
#define SVGA3D_DEVCAP_MULTISAMPLE_8X

#define SVGA3D_DEVCAP_MAX_FORCED_SAMPLE_COUNT

#define SVGA3D_DEVCAP_GL43

#define SVGA3D_DEVCAP_MAX

#define SVGA3D_DXFMT_SUPPORTED
#define SVGA3D_DXFMT_SHADER_SAMPLE
#define SVGA3D_DXFMT_COLOR_RENDERTARGET
#define SVGA3D_DXFMT_DEPTH_RENDERTARGET
#define SVGA3D_DXFMT_BLENDABLE
#define SVGA3D_DXFMT_MIPS
#define SVGA3D_DXFMT_ARRAY
#define SVGA3D_DXFMT_VOLUME
#define SVGA3D_DXFMT_DX_VERTEX_BUFFER
#define SVGA3D_DXFMT_MULTISAMPLE
#define SVGA3D_DXFMT_MAX

SVGA3dDevCapResult;

#endif