Leaked source code of windows server 2003
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.

78 lines
3.4 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: GlintFX.h
  3. *
  4. * Header definition specific to Permedia chip
  5. * Copyright (c) 1994-1999 3Dlabs Inc. Ltd. All rights reserved.
  6. * Copyright (c) 1995-2003 Microsoft Corporation. All rights reserved.
  7. *
  8. \**************************************************************************/
  9. typedef struct {
  10. HMEMREGION texmem;
  11. } FX_BRUSH, *PFX_BRUSH;
  12. #define __FX_FB_PACKED (1 << 19)
  13. #define __FX_FBOFFSETSHIFT 20
  14. #define __FX_FORCE_BACKGROUND_COLOR (1 << 6)
  15. #define __FX_BITMASK_PACKING (1 << 9)
  16. #define __FX_BITMASK_OFFSET 10
  17. #define __FX_LIMITS_ENABLE (1 << 18)
  18. #define __FX_STIPPLE_FORCE_BACKGROUND_COLOR (1 << 20)
  19. #define __RENDER_TEXTURE_ENABLE (1 << 13)
  20. #define __FX_TEXREADMODE_SWRAP_REPEAT (1 << 1)
  21. #define __FX_TEXREADMODE_TWRAP_REPEAT (1 << 3)
  22. #define __FX_TEXREADMODE_8HIGH (3 << 13)
  23. #define __FX_TEXREADMODE_8WIDE (3 << 9)
  24. #define __FX_TEXREADMODE_2048HIGH (11 << 13)
  25. #define __FX_TEXREADMODE_2048WIDE (11 << 9)
  26. #define __FX_TEXTUREREADMODE_PACKED_DATA (1 << 24)
  27. #define __FX_8x8REPEAT_TEXTUREREADMODE ( __PERMEDIA_ENABLE \
  28. | __FX_TEXREADMODE_TWRAP_REPEAT \
  29. | __FX_TEXREADMODE_SWRAP_REPEAT \
  30. | __FX_TEXREADMODE_8HIGH \
  31. | __FX_TEXREADMODE_8WIDE)
  32. #define __FX_2048x2048REPEAT_TEXTUREREADMODE ( __PERMEDIA_ENABLE \
  33. | __FX_TEXREADMODE_TWRAP_REPEAT \
  34. | __FX_TEXREADMODE_SWRAP_REPEAT \
  35. | __FX_TEXREADMODE_2048HIGH \
  36. | __FX_TEXREADMODE_2048WIDE)
  37. #define __FX_4BPPDOWNLOAD_TEXTUREREADMODE ( __PERMEDIA_ENABLE \
  38. | __FX_TEXREADMODE_2048HIGH \
  39. | __FX_TEXREADMODE_2048WIDE)
  40. #define __FX_TEXAPPLICATIONCOPY (3 << 1)
  41. #define __FX_TEXELSIZE_SHIFT 19
  42. #define __FX_8BIT_TEXELS (0 << __FX_TEXELSIZE_SHIFT)
  43. #define __FX_16BIT_TEXELS (1 << __FX_TEXELSIZE_SHIFT)
  44. #define __FX_32BIT_TEXELS (2 << __FX_TEXELSIZE_SHIFT)
  45. #define __FX_4BIT_TEXELS (3 << __FX_TEXELSIZE_SHIFT)
  46. #define __P2_24BIT_TEXELS (4 << __FX_TEXELSIZE_SHIFT)
  47. #define __FX_TEXTUREMAPFORMAT_32WIDE 1
  48. #define __FX_TEXTUREDATAFORMAT_32BIT_RGBA 0x00
  49. #define __FX_TEXTUREDATAFORMAT_32BIT 0x10
  50. #define __FX_TEXTUREDATAFORMAT_8BIT 0xe
  51. #define __FX_TEXTUREDATAFORMAT_16BIT 0x11
  52. #define __FX_TEXTUREDATAFORMAT_4BIT 0xf
  53. #define __P2_TEXTURE_DATAFORMAT_FLIP (1 << 9)
  54. #define __FX_TEXLUTMODE_DIRECT_ENTRY (1 << 1)
  55. #define __FX_TEXLUTMODE_4PIXELS_PER_ENTRY (2 << 10) //log2
  56. #define __FX_TEXLUTMODE_2PIXELS_PER_ENTRY (1 << 10) //log2
  57. #define __FX_TEXLUTMODE_1PIXEL_PER_ENTRY 0 //log2
  58. #define __FX_DITHERMODE_16BIT (1<<2) | __PERMEDIA_ENABLE