// Copyright (c) 2012- 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// X11, sigh.20#ifdef None21#undef None22#endif2324// NOTE: This seems a bit insane, but these are two very similar enums!2526// These are return values from DrawSync(), and also sceGeDrawSync().27// So these are frozen and "official".28enum DisplayListDrawSyncStatus {29// The list has been completed30PSP_GE_LIST_COMPLETED = 0,31// The list is queued but not executed yet32PSP_GE_LIST_QUEUED = 1,33// The list is currently being executed34PSP_GE_LIST_DRAWING = 2,35// The list was stopped because it encountered stall address36PSP_GE_LIST_STALLING = 3,37// The list is paused because of a signal or sceGeBreak38PSP_GE_LIST_PAUSED = 4,39};4041// These are states, stored on the lists! not sure if these are exposed, or if their values can be changed?42enum DisplayListState {43// No state assigned, the list is empty44PSP_GE_DL_STATE_NONE = 0,45// The list has been queued46PSP_GE_DL_STATE_QUEUED = 1,47// The list is being executed (or stalled?)48PSP_GE_DL_STATE_RUNNING = 2,49// The list was completed and will be removed50PSP_GE_DL_STATE_COMPLETED = 3,51// The list has been paused by a signal52PSP_GE_DL_STATE_PAUSED = 4,53};5455enum GPUInvalidationType {56// Affects all memory. Not considered highly.57GPU_INVALIDATE_ALL,58// Indicates some memory may have changed.59GPU_INVALIDATE_HINT,60// Reliable invalidation (where any hashing, etc. is unneeded, it'll always invalidate.)61GPU_INVALIDATE_SAFE,62// Forced invalidation for when the texture hash may not catch changes.63GPU_INVALIDATE_FORCE,64};6566enum class DLResult {67Done, // Or stall68Error,69DebugBreak, // used for stepping, breakpoints70};717273