Lines Matching +full:1 +full:- +full:of +full:- +full:4

4  * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
8 * and/or sell copies of the Software, and to permit persons to whom the
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
31 VC4_PACKET_NOP = 1,
33 VC4_PACKET_FLUSH = 4,
78 /* Not an actual hardware packet -- this is what we use to put
81 * start of the BO.
86 #define VC4_PACKET_HALT_SIZE 1
87 #define VC4_PACKET_NOP_SIZE 1
88 #define VC4_PACKET_FLUSH_SIZE 1
89 #define VC4_PACKET_FLUSH_ALL_SIZE 1
90 #define VC4_PACKET_START_TILE_BINNING_SIZE 1
91 #define VC4_PACKET_INCREMENT_SEMAPHORE_SIZE 1
92 #define VC4_PACKET_WAIT_ON_SEMAPHORE_SIZE 1
95 #define VC4_PACKET_STORE_MS_TILE_BUFFER_SIZE 1
96 #define VC4_PACKET_STORE_MS_TILE_BUFFER_AND_EOF_SIZE 1
103 #define VC4_PACKET_COMPRESSED_PRIMITIVE_SIZE 1
104 #define VC4_PACKET_CLIPPED_COMPRESSED_PRIMITIVE_SIZE 1
109 #define VC4_PACKET_CONFIGURATION_BITS_SIZE 4
126 /* Number of multisamples supported. */
127 #define VC4_MAX_SAMPLES 4
128 /* Size of a full resolution color or Z tile buffer load/store. */
129 #define VC4_TILE_BUFFER_SIZE (64 * 64 * 4)
136 #define VC4_TILING_FORMAT_T 1
142 * low bits of VC4_PACKET_STORE_FULL_RES_TILE_BUFFER and
147 #define VC4_LOADSTORE_FULL_RES_DISABLE_ZS BIT(1)
152 * low bits of VC4_PACKET_STORE_FULL_RES_TILE_BUFFER and
157 #define VC4_LOADSTORE_FULL_RES_DISABLE_ZS BIT(1)
162 * byte 2 of VC4_PACKET_STORE_TILE_BUFFER_GENERAL and
163 * VC4_PACKET_LOAD_TILE_BUFFER_GENERAL (low bits of the address)
168 #define VC4_LOADSTORE_TILE_BUFFER_DISABLE_FULL_ZS BIT(1)
175 * byte 0-1 of VC4_PACKET_STORE_TILE_BUFFER_GENERAL and
186 #define VC4_LOADSTORE_TILE_BUFFER_BGR565_DITHER 1
192 * byte 0 of VC4_PACKET_STORE_TILE_BUFFER_GENERAL and
198 #define VC4_STORE_TILE_BUFFER_MODE_DECIMATE_X4 (1 << 6)
201 /** The values of the field are VC4_TILING_FORMAT_* */
202 #define VC4_LOADSTORE_TILE_BUFFER_TILING_MASK VC4_MASK(5, 4)
203 #define VC4_LOADSTORE_TILE_BUFFER_TILING_SHIFT 4
208 #define VC4_LOADSTORE_TILE_BUFFER_COLOR 1
211 #define VC4_LOADSTORE_TILE_BUFFER_VG_MASK 4
215 #define VC4_INDEX_BUFFER_U8 (0 << 4)
216 #define VC4_INDEX_BUFFER_U16 (1 << 4)
221 #define VC4_SHADER_FLAG_VS_POINT_SIZE BIT(1)
224 /** @{ byte 2 of config bits. */
225 #define VC4_CONFIG_BITS_EARLY_Z_UPDATE BIT(1)
229 /** @{ byte 1 of config bits. */
231 /** same values in this 3-bit field as PIPE_FUNC_* */
232 #define VC4_CONFIG_BITS_DEPTH_FUNC_SHIFT 4
235 #define VC4_CONFIG_BITS_COVERAGE_UPDATE_NONZERO (0 << 1)
236 #define VC4_CONFIG_BITS_COVERAGE_UPDATE_ODD (1 << 1)
237 #define VC4_CONFIG_BITS_COVERAGE_UPDATE_OR (2 << 1)
238 #define VC4_CONFIG_BITS_COVERAGE_UPDATE_ZERO (3 << 1)
243 /** @{ byte 0 of config bits. */
245 #define VC4_CONFIG_BITS_RASTERIZER_OVERSAMPLE_4X (1 << 6)
248 #define VC4_CONFIG_BITS_AA_POINTS_AND_LINES BIT(4)
251 #define VC4_CONFIG_BITS_ENABLE_PRIM_BACK BIT(1)
255 /** @{ bits in the last u8 of VC4_PACKET_TILE_BINNING_MODE_CONFIG */
261 #define VC4_BIN_CONFIG_ALLOC_BLOCK_SIZE_64 1
265 #define VC4_BIN_CONFIG_ALLOC_INIT_BLOCK_SIZE_MASK VC4_MASK(4, 3)
268 #define VC4_BIN_CONFIG_ALLOC_INIT_BLOCK_SIZE_64 1
273 #define VC4_BIN_CONFIG_TILE_BUFFER_64BIT BIT(1)
277 /** @{ bits in the last u16 of VC4_PACKET_TILE_RENDERING_MODE_CONFIG */
284 /** The values of the field are VC4_TILING_FORMAT_* */
288 #define VC4_RENDER_CONFIG_DECIMATE_MODE_1X (0 << 4)
289 #define VC4_RENDER_CONFIG_DECIMATE_MODE_4X (1 << 4)
290 #define VC4_RENDER_CONFIG_DECIMATE_MODE_16X (2 << 4)
295 #define VC4_RENDER_CONFIG_FORMAT_RGBA8888 1
298 #define VC4_RENDER_CONFIG_TILE_BUFFER_64BIT BIT(1)
301 #define VC4_PRIMITIVE_LIST_FORMAT_16_INDEX (1 << 4)
302 #define VC4_PRIMITIVE_LIST_FORMAT_32_XY (3 << 4)
304 #define VC4_PRIMITIVE_LIST_FORMAT_TYPE_LINES (1 << 0)
310 VC4_TEXTURE_TYPE_RGBX8888 = 1,
313 VC4_TEXTURE_TYPE_RGB565 = 4,
337 #define VC4_TEX_P0_TYPE_MASK VC4_MASK(7, 4)
338 #define VC4_TEX_P0_TYPE_SHIFT 4
354 # define VC4_TEX_P1_MAGFILT_NEAREST 1
356 #define VC4_TEX_P1_MINFILT_MASK VC4_MASK(6, 4)
357 #define VC4_TEX_P1_MINFILT_SHIFT 4
359 # define VC4_TEX_P1_MINFILT_NEAREST 1
362 # define VC4_TEX_P1_MINFILT_LIN_MIP_NEAR 4
367 #define VC4_TEX_P1_WRAP_S_MASK VC4_MASK(1, 0)
370 # define VC4_TEX_P1_WRAP_CLAMP 1
377 # define VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE 1