Clone of mesa.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

dri_screen.h 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**************************************************************************
  2. *
  3. * Copyright 2009, VMware, Inc.
  4. * All Rights Reserved.
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the
  8. * "Software"), to deal in the Software without restriction, including
  9. * without limitation the rights to use, copy, modify, merge, publish,
  10. * distribute, sub license, and/or sell copies of the Software, and to
  11. * permit persons to whom the Software is furnished to do so, subject to
  12. * the following conditions:
  13. *
  14. * The above copyright notice and this permission notice (including the
  15. * next paragraph) shall be included in all copies or substantial portions
  16. * of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
  21. * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
  22. * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  23. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  24. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25. *
  26. **************************************************************************/
  27. /*
  28. * Author: Keith Whitwell <keithw@vmware.com>
  29. * Author: Jakob Bornecrantz <wallbraker@gmail.com>
  30. */
  31. #ifndef DRI_SCREEN_H
  32. #define DRI_SCREEN_H
  33. #include "dri_util.h"
  34. #include "xmlconfig.h"
  35. #include "pipe/p_compiler.h"
  36. struct dri_screen
  37. {
  38. /* dri */
  39. __DRIscreenPrivate *sPriv;
  40. /**
  41. * Configuration cache with default values for all contexts
  42. */
  43. driOptionCache optionCache;
  44. /**
  45. * Temporary(?) context to use for SwapBuffers or other situations in
  46. * which we need a rendering context, but none is currently bound.
  47. */
  48. struct dri_context *dummyContext;
  49. /* drm */
  50. int fd;
  51. /* gallium */
  52. struct pipe_winsys *pipe_winsys;
  53. struct pipe_screen *pipe_screen;
  54. };
  55. /** cast wrapper */
  56. static INLINE struct dri_screen *
  57. dri_screen(__DRIscreenPrivate *sPriv)
  58. {
  59. return (struct dri_screen *) sPriv->private;
  60. }
  61. /***********************************************************************
  62. * dri_screen.c
  63. */
  64. const __DRIconfig **
  65. dri_init_screen2(__DRIscreenPrivate *sPriv);
  66. void
  67. dri_destroy_screen(__DRIscreenPrivate * sPriv);
  68. int
  69. dri_get_swap_info(__DRIdrawablePrivate * dPriv,
  70. __DRIswapInfo * sInfo);
  71. #endif
  72. /* vim: set sw=3 ts=8 sts=3 expandtab: */