Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.2 KiB

  1. //========== Copyright � Valve Corporation, All rights reserved. ========
  2. #ifndef JOB_VJOBS_ROOT_HDR
  3. #define JOB_VJOBS_ROOT_HDR
  4. #ifdef _PS3
  5. #include <cell/spurs.h>
  6. #include "vjobs/edgegeomparams_shared.h"
  7. #include "const.h"
  8. #endif
  9. // this structure gives the client a kind of "root access" to SPURS and all VJobs functionality
  10. struct ALIGN128 VJobsRoot
  11. {
  12. enum AlignmentEnum_t {ALIGNMENT = 128};
  13. enum {MAXPORTS_ANIM = 32};
  14. #ifdef _PS3
  15. cell::Spurs::Spurs m_spurs;
  16. // the job queue processes a lot of Edge jobs, and edge jobs have the largest descriptors of all
  17. cell::Spurs::JobQueue::JobQueue< 512, 256 > m_largeJobQueue;
  18. cell::Spurs::JobQueue::JobQueue< 512, sizeof( job_edgegeom::JobDescriptor_t ) > m_smallJobQueue;
  19. cell::Spurs::JobQueue::JobQueue< 512, sizeof( job_edgegeom::JobDescriptor_t ) > m_buildWorldRenderableJobQueue;
  20. JobQueue::Port2 m_queuePortBlobulator, m_queuePortSound;//DECL_ALIGN( CELL_SPURS_JOBQUEUE_PORT2_ALIGN );
  21. JobQueue::Port2 m_queuePortAnim[ MAXPORTS_ANIM ];
  22. JobQueue::Port2 m_queuePortBuildIndices;
  23. JobQueue::Port2 m_queuePortBuildWorldAndRenderables;
  24. JobQueue::Port2 m_queuePortBuildWorld[ MAX_CONCURRENT_BUILDVIEWS ];
  25. JobQueue::Port2 m_queuePortBuildRenderables[ MAX_CONCURRENT_BUILDVIEWS ];
  26. uint64 m_nSpugcmChainPriority;
  27. uint64 m_nEdgeChainPriority;
  28. uint64 m_nFpcpChainPriority;
  29. uint64 m_nSystemWorkloadPriority;
  30. uint64 m_nSlimJobQueuePriority;
  31. uint64 m_nBulkJobQueuePriority;
  32. uint64 m_nEdgePostWorkloadPriority;
  33. uint64 m_nGemWorkloadPriority;
  34. const CellSpursJobHeader *m_pFpcPatch2;
  35. const CellSpursJobHeader *m_pJobNotify;
  36. const CellSpursJobHeader *m_pJobZPass;
  37. const CellSpursJobHeader *m_pCtxFlush;
  38. const CellSpursJobHeader *m_pGcmStateFlush;
  39. const CellSpursJobHeader *m_pEdgeGeom;
  40. const CellSpursJobHeader *m_pDrawIndexedPrimitive;
  41. const CellSpursJobHeader *m_pJobBlobulator;
  42. const CellSpursJobHeader *m_pJobSndUpsampler;
  43. const CellSpursJobHeader *m_pJobMp3Dec;
  44. const CellSpursJobHeader *m_pJobZlibInflate;
  45. const CellSpursJobHeader *m_pJobZlibDeflate;
  46. const CellSpursJobHeader *m_pJobAccumPose;
  47. const CellSpursJobHeader *m_pJobBuildIndices;
  48. const CellSpursJobHeader *m_pJobBuildRenderables;
  49. const CellSpursJobHeader *m_pJobBuildWorldLists;
  50. #endif
  51. }
  52. ALIGN128_POST;
  53. #endif