Clone of mesa.
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.

nv40_screen.h 784B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __NV40_SCREEN_H__
  2. #define __NV40_SCREEN_H__
  3. #include "nouveau/nouveau_screen.h"
  4. #include "nouveau/nv04_surface_2d.h"
  5. struct nv40_screen {
  6. struct nouveau_screen base;
  7. struct nouveau_winsys *nvws;
  8. struct nv40_context *cur_ctx;
  9. /* HW graphics objects */
  10. struct nv04_surface_2d *eng2d;
  11. struct nouveau_grobj *curie;
  12. struct nouveau_notifier *sync;
  13. /* Query object resources */
  14. struct nouveau_notifier *query;
  15. struct nouveau_resource *query_heap;
  16. /* Vtxprog resources */
  17. struct nouveau_resource *vp_exec_heap;
  18. struct nouveau_resource *vp_data_heap;
  19. /* Current 3D state of channel */
  20. struct nouveau_stateobj *state[NV40_STATE_MAX];
  21. };
  22. static INLINE struct nv40_screen *
  23. nv40_screen(struct pipe_screen *screen)
  24. {
  25. return (struct nv40_screen *)screen;
  26. }
  27. #endif