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.

r300_emit.h 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Copyright 2008 Corbin Simpson <MostAwesomeDude@gmail.com>
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * on the rights to use, copy, modify, merge, publish, distribute, sub
  8. * license, and/or sell copies of the Software, and to permit persons to whom
  9. * the Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice (including the next
  12. * paragraph) shall be included in all copies or substantial portions of the
  13. * Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
  18. * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
  19. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  20. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21. * USE OR OTHER DEALINGS IN THE SOFTWARE. */
  22. #ifndef R300_EMIT_H
  23. #define R300_EMIT_H
  24. #include "r300_context.h"
  25. #include "radeon_code.h"
  26. struct rX00_fragment_program_code;
  27. struct r300_vertex_program_code;
  28. void r300_emit_aos(struct r300_context* r300, unsigned offset);
  29. void r300_emit_blend_state(struct r300_context* r300,
  30. unsigned size, void* state);
  31. void r300_emit_blend_color_state(struct r300_context* r300,
  32. unsigned size, void* state);
  33. void r300_emit_clip_state(struct r300_context* r300,
  34. unsigned size, void* state);
  35. void r300_emit_dsa_state(struct r300_context* r300,
  36. unsigned size, void* state);
  37. void r300_emit_fragment_program_code(struct r300_context* r300,
  38. struct rX00_fragment_program_code* generic_code);
  39. void r300_emit_fs_constant_buffer(struct r300_context* r300,
  40. struct rc_constant_list* constants);
  41. void r500_emit_fragment_program_code(struct r300_context* r300,
  42. struct rX00_fragment_program_code* generic_code);
  43. void r500_emit_fs_constant_buffer(struct r300_context* r300,
  44. struct rc_constant_list* constants);
  45. void r300_emit_fb_state(struct r300_context* r300, unsigned size, void* state);
  46. void r300_emit_query_start(struct r300_context* r300);
  47. void r300_emit_query_end(struct r300_context* r300);
  48. void r300_emit_rs_state(struct r300_context* r300, unsigned size, void* state);
  49. void r300_emit_rs_block_state(struct r300_context* r300,
  50. unsigned size, void* state);
  51. void r300_emit_scissor_state(struct r300_context* r300,
  52. unsigned size, void* state);
  53. void r300_emit_textures_state(struct r300_context *r300,
  54. unsigned size, void *state);
  55. void r300_emit_vertex_buffer(struct r300_context* r300);
  56. void r300_emit_vertex_stream_state(struct r300_context* r300,
  57. unsigned size, void* state);
  58. void r300_emit_vap_output_state(struct r300_context* r300,
  59. unsigned size, void* state);
  60. void r300_emit_vs_constant_buffer(struct r300_context* r300,
  61. struct rc_constant_list* constants);
  62. void r300_emit_vs_state(struct r300_context* r300, unsigned size, void* state);
  63. void r300_emit_viewport_state(struct r300_context* r300,
  64. unsigned size, void* state);
  65. void r300_emit_ztop_state(struct r300_context* r300,
  66. unsigned size, void* state);
  67. void r300_emit_pvs_flush(struct r300_context* r300, unsigned size, void* state);
  68. void r300_emit_texture_cache_inval(struct r300_context* r300, unsigned size, void* state);
  69. unsigned r300_get_num_dirty_dwords(struct r300_context *r300);
  70. /* Emit all dirty state. */
  71. void r300_emit_dirty_state(struct r300_context* r300);
  72. void r300_emit_buffer_validate(struct r300_context *r300,
  73. boolean do_validate_vertex_buffers,
  74. struct pipe_buffer *index_buffer);
  75. #endif /* R300_EMIT_H */