1 /* 2 * Copyright (c) 1993-2020, NVIDIA CORPORATION. All rights reserved. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 23 #ifndef _clC57e_h_ 24 #define _clC57e_h_ 25 26 // class methods 27 #define NVC57E_SET_SIZE (0x00000224) 28 #define NVC57E_SET_SIZE_WIDTH 15:0 29 #define NVC57E_SET_SIZE_HEIGHT 31:16 30 #define NVC57E_SET_STORAGE (0x00000228) 31 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT 3:0 32 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_ONE_GOB (0x00000000) 33 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_TWO_GOBS (0x00000001) 34 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_FOUR_GOBS (0x00000002) 35 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_EIGHT_GOBS (0x00000003) 36 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_SIXTEEN_GOBS (0x00000004) 37 #define NVC57E_SET_STORAGE_BLOCK_HEIGHT_NVD_BLOCK_HEIGHT_THIRTYTWO_GOBS (0x00000005) 38 #define NVC57E_SET_STORAGE_MEMORY_LAYOUT 4:4 39 #define NVC57E_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR (0x00000000) 40 #define NVC57E_SET_STORAGE_MEMORY_LAYOUT_PITCH (0x00000001) 41 #define NVC57E_SET_PARAMS (0x0000022C) 42 #define NVC57E_SET_PARAMS_FORMAT 7:0 43 #define NVC57E_SET_PARAMS_FORMAT_I8 (0x0000001E) 44 #define NVC57E_SET_PARAMS_FORMAT_R4G4B4A4 (0x0000002F) 45 #define NVC57E_SET_PARAMS_FORMAT_R5G6B5 (0x000000E8) 46 #define NVC57E_SET_PARAMS_FORMAT_A1R5G5B5 (0x000000E9) 47 #define NVC57E_SET_PARAMS_FORMAT_R5G5B5A1 (0x0000002E) 48 #define NVC57E_SET_PARAMS_FORMAT_A8R8G8B8 (0x000000CF) 49 #define NVC57E_SET_PARAMS_FORMAT_X8R8G8B8 (0x000000E6) 50 #define NVC57E_SET_PARAMS_FORMAT_A8B8G8R8 (0x000000D5) 51 #define NVC57E_SET_PARAMS_FORMAT_X8B8G8R8 (0x000000F9) 52 #define NVC57E_SET_PARAMS_FORMAT_A2R10G10B10 (0x000000DF) 53 #define NVC57E_SET_PARAMS_FORMAT_A2B10G10R10 (0x000000D1) 54 #define NVC57E_SET_PARAMS_FORMAT_X2BL10GL10RL10_XRBIAS (0x00000022) 55 #define NVC57E_SET_PARAMS_FORMAT_X2BL10GL10RL10_XVYCC (0x00000024) 56 #define NVC57E_SET_PARAMS_FORMAT_R16_G16_B16_A16_NVBIAS (0x00000023) 57 #define NVC57E_SET_PARAMS_FORMAT_R16_G16_B16_A16 (0x000000C6) 58 #define NVC57E_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16 (0x000000CA) 59 #define NVC57E_SET_PARAMS_FORMAT_Y8_U8__Y8_V8_N422 (0x00000028) 60 #define NVC57E_SET_PARAMS_FORMAT_U8_Y8__V8_Y8_N422 (0x00000029) 61 #define NVC57E_SET_PARAMS_FORMAT_Y8___U8V8_N444 (0x00000035) 62 #define NVC57E_SET_PARAMS_FORMAT_Y8___U8V8_N422 (0x00000036) 63 #define NVC57E_SET_PARAMS_FORMAT_Y8___V8U8_N420 (0x00000038) 64 #define NVC57E_SET_PARAMS_FORMAT_Y10___U10V10_N444 (0x00000055) 65 #define NVC57E_SET_PARAMS_FORMAT_Y10___U10V10_N422 (0x00000056) 66 #define NVC57E_SET_PARAMS_FORMAT_Y10___V10U10_N420 (0x00000058) 67 #define NVC57E_SET_PARAMS_FORMAT_Y12___U12V12_N444 (0x00000075) 68 #define NVC57E_SET_PARAMS_FORMAT_Y12___U12V12_N422 (0x00000076) 69 #define NVC57E_SET_PARAMS_FORMAT_Y12___V12U12_N420 (0x00000078) 70 #define NVC57E_SET_PARAMS_CLAMP_BEFORE_BLEND 18:18 71 #define NVC57E_SET_PARAMS_CLAMP_BEFORE_BLEND_DISABLE (0x00000000) 72 #define NVC57E_SET_PARAMS_CLAMP_BEFORE_BLEND_ENABLE (0x00000001) 73 #define NVC57E_SET_PARAMS_SWAP_UV 19:19 74 #define NVC57E_SET_PARAMS_SWAP_UV_DISABLE (0x00000000) 75 #define NVC57E_SET_PARAMS_SWAP_UV_ENABLE (0x00000001) 76 #define NVC57E_SET_PARAMS_FMT_ROUNDING_MODE 22:22 77 #define NVC57E_SET_PARAMS_FMT_ROUNDING_MODE_ROUND_TO_NEAREST (0x00000000) 78 #define NVC57E_SET_PARAMS_FMT_ROUNDING_MODE_ROUND_DOWN (0x00000001) 79 #define NVC57E_SET_PLANAR_STORAGE(b) (0x00000230 + (b)*0x00000004) 80 #define NVC57E_SET_PLANAR_STORAGE_PITCH 12:0 81 #define NVC57E_SET_CONTEXT_DMA_ISO(b) (0x00000240 + (b)*0x00000004) 82 #define NVC57E_SET_CONTEXT_DMA_ISO_HANDLE 31:0 83 #define NVC57E_SET_OFFSET(b) (0x00000260 + (b)*0x00000004) 84 #define NVC57E_SET_OFFSET_ORIGIN 31:0 85 #define NVC57E_SET_POINT_IN(b) (0x00000290 + (b)*0x00000004) 86 #define NVC57E_SET_POINT_IN_X 15:0 87 #define NVC57E_SET_POINT_IN_Y 31:16 88 #define NVC57E_SET_SIZE_IN (0x00000298) 89 #define NVC57E_SET_SIZE_IN_WIDTH 15:0 90 #define NVC57E_SET_SIZE_IN_HEIGHT 31:16 91 #define NVC57E_SET_SIZE_OUT (0x000002A4) 92 #define NVC57E_SET_SIZE_OUT_WIDTH 15:0 93 #define NVC57E_SET_SIZE_OUT_HEIGHT 31:16 94 #define NVC57E_SET_PRESENT_CONTROL (0x00000308) 95 #define NVC57E_SET_PRESENT_CONTROL_MIN_PRESENT_INTERVAL 3:0 96 #define NVC57E_SET_PRESENT_CONTROL_BEGIN_MODE 6:4 97 #define NVC57E_SET_PRESENT_CONTROL_BEGIN_MODE_NON_TEARING (0x00000000) 98 #define NVC57E_SET_PRESENT_CONTROL_BEGIN_MODE_IMMEDIATE (0x00000001) 99 #define NVC57E_SET_PRESENT_CONTROL_TIMESTAMP_MODE 8:8 100 #define NVC57E_SET_PRESENT_CONTROL_TIMESTAMP_MODE_DISABLE (0x00000000) 101 #define NVC57E_SET_PRESENT_CONTROL_TIMESTAMP_MODE_ENABLE (0x00000001) 102 #define NVC57E_SET_FMT_COEFFICIENT_C00 (0x00000400) 103 #define NVC57E_SET_FMT_COEFFICIENT_C00_VALUE 20:0 104 #define NVC57E_SET_FMT_COEFFICIENT_C01 (0x00000404) 105 #define NVC57E_SET_FMT_COEFFICIENT_C01_VALUE 20:0 106 #define NVC57E_SET_FMT_COEFFICIENT_C02 (0x00000408) 107 #define NVC57E_SET_FMT_COEFFICIENT_C02_VALUE 20:0 108 #define NVC57E_SET_FMT_COEFFICIENT_C03 (0x0000040C) 109 #define NVC57E_SET_FMT_COEFFICIENT_C03_VALUE 20:0 110 #define NVC57E_SET_FMT_COEFFICIENT_C10 (0x00000410) 111 #define NVC57E_SET_FMT_COEFFICIENT_C10_VALUE 20:0 112 #define NVC57E_SET_FMT_COEFFICIENT_C11 (0x00000414) 113 #define NVC57E_SET_FMT_COEFFICIENT_C11_VALUE 20:0 114 #define NVC57E_SET_FMT_COEFFICIENT_C12 (0x00000418) 115 #define NVC57E_SET_FMT_COEFFICIENT_C12_VALUE 20:0 116 #define NVC57E_SET_FMT_COEFFICIENT_C13 (0x0000041C) 117 #define NVC57E_SET_FMT_COEFFICIENT_C13_VALUE 20:0 118 #define NVC57E_SET_FMT_COEFFICIENT_C20 (0x00000420) 119 #define NVC57E_SET_FMT_COEFFICIENT_C20_VALUE 20:0 120 #define NVC57E_SET_FMT_COEFFICIENT_C21 (0x00000424) 121 #define NVC57E_SET_FMT_COEFFICIENT_C21_VALUE 20:0 122 #define NVC57E_SET_FMT_COEFFICIENT_C22 (0x00000428) 123 #define NVC57E_SET_FMT_COEFFICIENT_C22_VALUE 20:0 124 #define NVC57E_SET_FMT_COEFFICIENT_C23 (0x0000042C) 125 #define NVC57E_SET_FMT_COEFFICIENT_C23_VALUE 20:0 126 #define NVC57E_SET_ILUT_CONTROL (0x00000440) 127 #define NVC57E_SET_ILUT_CONTROL_INTERPOLATE 0:0 128 #define NVC57E_SET_ILUT_CONTROL_INTERPOLATE_DISABLE (0x00000000) 129 #define NVC57E_SET_ILUT_CONTROL_INTERPOLATE_ENABLE (0x00000001) 130 #define NVC57E_SET_ILUT_CONTROL_MIRROR 1:1 131 #define NVC57E_SET_ILUT_CONTROL_MIRROR_DISABLE (0x00000000) 132 #define NVC57E_SET_ILUT_CONTROL_MIRROR_ENABLE (0x00000001) 133 #define NVC57E_SET_ILUT_CONTROL_MODE 3:2 134 #define NVC57E_SET_ILUT_CONTROL_MODE_SEGMENTED (0x00000000) 135 #define NVC57E_SET_ILUT_CONTROL_MODE_DIRECT8 (0x00000001) 136 #define NVC57E_SET_ILUT_CONTROL_MODE_DIRECT10 (0x00000002) 137 #define NVC57E_SET_ILUT_CONTROL_SIZE 18:8 138 #define NVC57E_SET_CONTEXT_DMA_ILUT (0x00000444) 139 #define NVC57E_SET_CONTEXT_DMA_ILUT_HANDLE 31:0 140 #define NVC57E_SET_OFFSET_ILUT (0x00000448) 141 #define NVC57E_SET_OFFSET_ILUT_ORIGIN 31:0 142 #endif // _clC57e_h 143