CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/GPU/Debugger/GECommandTable.h
Views: 1401
// Copyright (c) 2022- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "GPU/ge_constants.h"2021enum class GECmdFormat {22DATA, // Just regular data.23DATA16, // Data, but only 16 bits of it used.24DATA8, // 8 bits value (alpha, etc.)25NONE, // Should have no arguments or value.26RELATIVE_ADDR, // 24 bits added to base + offset.27PRIM, // 16 bits count, 3 bits type.28BEZIER, // 8 bits ucount, 8 bits vcount.29SPLINE, // 8 bits ucount, 8 bits vcount, 2 bits utype, 2 bits vtype.30JUMP, // Like RELATIVE_ADDR, but lower 2 bits ignored.31SIGNAL, // 16 bits data, 8 bits signal type.32HIGH_ADDR_ONLY, // 16 bits ignored, 8 bits for a high address.33LOW_ADDR_ONLY, // 24 bits low address.34LOW_ADDR, // 24 bits low address.35HIGH_ADDR, // 16 bits ignored, 8 bits for a high address.36VERTEX_TYPE, // 24-bits of vtype flags (complex.)37OFFSET_ADDR, // 24 bits become the high bits of offset.38X10_Y10, // 10 bits X, 10 bits Y.39FLAG, // 1 bit on/off.40BONE_NUM, // 7 bits number.41MATRIX_NUM, // 4 bits number.42FLOAT, // 24 bits float data.43PATCH_DIVISION, // 8 bits divisionu, 8 bits divisionv.44PATCH_PRIM, // 2 bits primitive type.45SUBPIXEL_COORD, // 4 bits subpixel, 12 bits integer value.46MATERIAL_UPDATE, // 3 bits colors to update.47RGB, // 24 bits RGB color.48LIGHT_TYPE, // 8 bits computation (2 bits), 2 bits type.49STRIDE, // 11 bits.50STRIDE_HIGH_ADDR, // 11 bits stride, 5 ignored, 8 bits high address.51TEX_SIZE, // 4 bits width power, 4 bits ignored, 4 bits height power.52TEX_MAP_MODE, // 8 bits mode (2 bits), 2 bits matrix factor.53TEX_LIGHT_SRC, // 8 bits lightu (2 bits), 2 bits lightv.54TEX_MODE, // 8 bits swizzle (1 bit), 8 bits separate clut4 (1 bit), 3 bits max level.55TEX_FORMAT, // 4 bits format.56TEX_FILTER, // 3 bits minify mode, 5 bits ignored, 1 bit magnify mode.57TEX_CLAMP, // 1 bit clampu, 7 bits ignored, 1 bit clampv.58TEX_LEVEL_MODE, // 2 bits mode, 15 bits ignored, 4.4 (8 bits) bias.59TEX_FUNC, // 3 bits function, 5 bits ignored, 1 bit use alpha, 7 bits ignored, 1 bit double color.60CLUT_BLOCKS, // 6 bits block count.61CLUT_FORMAT, // 2 bits format, 5 bits shift, 1 bit ignored, 8 bits mask, 5 bits base.62CLEAR_MODE, // 1 bit on, 7 bits ignored, 3 bits aspect.63COLOR_TEST_FUNC, // 2 bits test function.64ALPHA_TEST, // 3 bits function, 5 bits ignored, 8 bits ref, 8 bits mask.65STENCIL_OP, // 8 bits sfail (3 bits), 8 bits zfail (3 bits), 8 bits zpass (3 bits.)66DEPTH_TEST_FUNC, // 3 bits function.67BLEND_MODE, // 4 bits srcfactor, 4 bits dstfactor, 3 bits equation.68DITHER_ROW, // 4 s.3.0 fixed point dither offsets.69LOGIC_OP, // 4 bits logic operation.70ALPHA_PRIM, // 8 bits alpha, 3 bits primitive type, 1 bit antialias, 6 bit clip?, 1 bit shading, 1 bit cullenable, 1 bit cullface, 1 bit tex enable, 1 bit fog, 1 bit dither.71};7273struct GECmdInfo {74GECommand reg;75const char *name;76GECmdFormat fmt;77};7879bool GECmdInfoByName(const char *name, GECmdInfo &info);80GECmdInfo GECmdInfoByCmd(GECommand reg);818283