1 /* -*- mesa-c++ -*- 2 * Copyright 2018-2019 Collabora LTD 3 * Author: Gert Wollny <[email protected]> 4 * SPDX-License-Identifier: MIT 5 */ 6 7 #ifndef SFN_CALLSTACK_HH 8 #define SFN_CALLSTACK_HH 9 10 #include "gallium/drivers/r600/r600_asm.h" 11 12 namespace r600 { 13 14 class CallStack { 15 public: 16 CallStack(r600_bytecode& bc); 17 ~CallStack(); 18 int push(unsigned type); 19 void pop(unsigned type); 20 int update_max_depth(unsigned type); 21 22 private: 23 r600_bytecode& m_bc; 24 }; 25 26 } // namespace r600 27 28 #endif // SFN_CALLSTACK_HH 29