diff options
author | Jerome Glisse | 2010-01-14 04:28:25 -0600 |
---|---|---|
committer | Jerome Glisse | 2010-01-14 04:28:25 -0600 |
commit | 74937cda177363ff4ede9e2b4ea2bec04cda892e (patch) | |
tree | 903a4a7afe814d27cc6541dd484bcf31bdfd2d32 /radeon | |
parent | 6bf1ed2979ca56d3e8dd8938fc08e3810887ae8a (diff) | |
download | libdrm-74937cda177363ff4ede9e2b4ea2bec04cda892e.tar.gz libdrm-74937cda177363ff4ede9e2b4ea2bec04cda892e.tar.xz libdrm-74937cda177363ff4ede9e2b4ea2bec04cda892e.zip |
radeon: indentation + trailing space cleanup
Diffstat (limited to 'radeon')
-rw-r--r-- | radeon/radeon_cs.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/radeon/radeon_cs.c b/radeon/radeon_cs.c index 689eb817..cc9be398 100644 --- a/radeon/radeon_cs.c +++ b/radeon/radeon_cs.c | |||
@@ -3,42 +3,41 @@ | |||
3 | #include "radeon_cs.h" | 3 | #include "radeon_cs.h" |
4 | #include "radeon_cs_int.h" | 4 | #include "radeon_cs_int.h" |
5 | 5 | ||
6 | struct radeon_cs *radeon_cs_create(struct radeon_cs_manager *csm, | 6 | struct radeon_cs *radeon_cs_create(struct radeon_cs_manager *csm, uint32_t ndw) |
7 | uint32_t ndw) | ||
8 | { | 7 | { |
9 | struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw); | 8 | struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw); |
10 | return (struct radeon_cs *)csi; | 9 | return (struct radeon_cs *)csi; |
11 | } | 10 | } |
12 | 11 | ||
13 | int radeon_cs_write_reloc(struct radeon_cs *cs, | 12 | int radeon_cs_write_reloc(struct radeon_cs *cs, |
14 | struct radeon_bo *bo, | 13 | struct radeon_bo *bo, |
15 | uint32_t read_domain, | 14 | uint32_t read_domain, |
16 | uint32_t write_domain, | 15 | uint32_t write_domain, |
17 | uint32_t flags) | 16 | uint32_t flags) |
18 | { | 17 | { |
19 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; | 18 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; |
20 | 19 | ||
21 | return csi->csm->funcs->cs_write_reloc(csi, | 20 | return csi->csm->funcs->cs_write_reloc(csi, |
22 | bo, | 21 | bo, |
23 | read_domain, | 22 | read_domain, |
24 | write_domain, | 23 | write_domain, |
25 | flags); | 24 | flags); |
26 | } | 25 | } |
27 | 26 | ||
28 | int radeon_cs_begin(struct radeon_cs *cs, | 27 | int radeon_cs_begin(struct radeon_cs *cs, |
29 | uint32_t ndw, | 28 | uint32_t ndw, |
30 | const char *file, | 29 | const char *file, |
31 | const char *func, | 30 | const char *func, |
32 | int line) | 31 | int line) |
33 | { | 32 | { |
34 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; | 33 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; |
35 | return csi->csm->funcs->cs_begin(csi, ndw, file, func, line); | 34 | return csi->csm->funcs->cs_begin(csi, ndw, file, func, line); |
36 | } | 35 | } |
37 | 36 | ||
38 | int radeon_cs_end(struct radeon_cs *cs, | 37 | int radeon_cs_end(struct radeon_cs *cs, |
39 | const char *file, | 38 | const char *file, |
40 | const char *func, | 39 | const char *func, |
41 | int line) | 40 | int line) |
42 | { | 41 | { |
43 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; | 42 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; |
44 | return csi->csm->funcs->cs_end(csi, file, func, line); | 43 | return csi->csm->funcs->cs_end(csi, file, func, line); |
@@ -78,9 +77,9 @@ void radeon_cs_set_limit(struct radeon_cs *cs, uint32_t domain, uint32_t limit) | |||
78 | { | 77 | { |
79 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; | 78 | struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; |
80 | if (domain == RADEON_GEM_DOMAIN_VRAM) | 79 | if (domain == RADEON_GEM_DOMAIN_VRAM) |
81 | csi->csm->vram_limit = limit; | 80 | csi->csm->vram_limit = limit; |
82 | else | 81 | else |
83 | csi->csm->gart_limit = limit; | 82 | csi->csm->gart_limit = limit; |
84 | } | 83 | } |
85 | 84 | ||
86 | void radeon_cs_space_set_flush(struct radeon_cs *cs, void (*fn)(void *), void *data) | 85 | void radeon_cs_space_set_flush(struct radeon_cs *cs, void (*fn)(void *), void *data) |
@@ -89,4 +88,3 @@ void radeon_cs_space_set_flush(struct radeon_cs *cs, void (*fn)(void *), void *d | |||
89 | csi->space_flush_fn = fn; | 88 | csi->space_flush_fn = fn; |
90 | csi->space_flush_data = data; | 89 | csi->space_flush_data = data; |
91 | } | 90 | } |
92 | |||