radeon_blit_common.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2009 Advanced Micro Devices, Inc.
  3. * Copyright 2009 Red Hat Inc.
  4. * Copyright 2012 Alcatel-Lucent, Inc.
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the "Software"),
  8. * to deal in the Software without restriction, including without limitation
  9. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. * and/or sell copies of the Software, and to permit persons to whom the
  11. * Software is furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice (including the next
  14. * paragraph) shall be included in all copies or substantial portions of the
  15. * Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * THE COPYRIGHT HOLDER(S) AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  21. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  22. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. *
  25. */
  26. #ifndef __RADEON_BLIT_COMMON_H__
  27. #define DI_PT_RECTLIST 0x11
  28. #define DI_INDEX_SIZE_16_BIT 0x0
  29. #define DI_SRC_SEL_AUTO_INDEX 0x2
  30. #define FMT_8 0x1
  31. #define FMT_5_6_5 0x8
  32. #define FMT_8_8_8_8 0x1a
  33. #define COLOR_8 0x1
  34. #define COLOR_5_6_5 0x8
  35. #define COLOR_8_8_8_8 0x1a
  36. #define RECT_UNIT_H 32
  37. #define RECT_UNIT_W (RADEON_GPU_PAGE_SIZE / 4 / RECT_UNIT_H)
  38. #define __RADEON_BLIT_COMMON_H__
  39. #endif