summaryrefslogtreecommitdiff
path: root/r600_atom.h
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-02-18 23:24:09 +0100
committerJerome Glisse <jglisse@redhat.com>2010-02-18 23:31:36 +0100
commit897890568fbad6f267b5d627077d2b041ed6da32 (patch)
treed6ec8ce461e447b156ec02163a2e4388affff36c /r600_atom.h
parentbe8877f64e4ff7718a607a57999ae73e6c75f260 (diff)
cleanup
Diffstat (limited to 'r600_atom.h')
-rw-r--r--r600_atom.h63
1 files changed, 1 insertions, 62 deletions
diff --git a/r600_atom.h b/r600_atom.h
index ab5c61d..fdf7942 100644
--- a/r600_atom.h
+++ b/r600_atom.h
@@ -35,73 +35,12 @@ struct r600_state_container {
struct radeon_bo *bo[32];
};
-struct r600_vs_buffer {
- struct drm_r600_vs_buffer drm;
- struct radeon_bo *bo;
-};
-
-struct r600_vs_input {
- struct drm_r600_vs_input drm;
- struct radeon_bo *bo[32];
- u32 nbo;
-};
-
-struct drm_r600_batch {
- struct radeon_atom *vs_constants;
- struct radeon_atom *ps_constants;
- struct radeon_atom *blend;
- struct radeon_atom *cb;
- struct radeon_atom *cb_cntl;
- struct radeon_atom *pa;
- struct radeon_atom *vport;
- struct radeon_atom *db;
- struct radeon_atom *db_cntl;
- struct radeon_atom *vs_shader;
- struct radeon_atom *ps_shader;
- struct r600_vs_input inputs;
-};
-
-/* R600 */
-#define R600_BATCH_NATOMS 11
-struct r600_batch {
- struct list_head list;
- struct list_head pre_flushes;
- struct list_head post_flushes;
- struct radeon_atom *atoms[R600_BATCH_NATOMS];
- struct radeon_atom *emit_atoms[R600_BATCH_NATOMS];
- u32 nemit_atoms;
- u32 nflushes;
- u32 npkts;
- struct radeon_bo *shaders;
- u32 shaders_idx;
- struct r600_vs_input inputs;
- u32 nfs_resources;
-};
-
-struct r600_batches {
- struct radeon_ib *ib;
- u32 npkts;
- struct list_head batches;
- u32 nfs_resources;
- struct r600_vs_buffer fs_resource[160];
- u32 last_id[R600_BATCH_NATOMS];
-};
/* R600 */
extern void r600_shader_disassemble(u32 *bytecode, u32 ndwords);
-extern int r600_shader_build_fs(struct radeon_device *rdev,
- u32 *bytecode, u32 *ndwords,
- struct drm_r600_vs_input *inputs,
- struct drm_r600_vs_shader *vs);
extern int r600_atoms_init(struct radeon_device *rdev);
extern void r600_atoms_release(struct radeon_device *rdev);
-extern int r600_atom_create(struct radeon_device *rdev,
- struct drm_radeon_atom *patom,
- struct radeon_atom **atomptr);
-extern int r600_batches_queue(struct radeon_device *rdev,
- struct drm_r600_batch *batch);
+extern struct radeon_atom *r600_atom_create(struct radeon_device *rdev, struct drm_radeon_atom *patom);
extern int r600_batches_flush(struct radeon_device *rdev);
-/* R700 */
-extern void r700_batches_states_default(struct radeon_device *rdev, struct r600_batches *batches);
#endif